amazonka-application-autoscaling-1.4.3: Amazon Application Auto Scaling SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ApplicationAutoScaling.Types

Contents

Description

 

Synopsis

Service Configuration

applicationAutoScaling :: Service Source #

API version '2016-02-06' of the Amazon Application Auto Scaling SDK configuration.

Errors

_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError Source #

An exception was thrown for a validation issue. Review the available parameters for the API request.

_FailedResourceAccessException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Failed access to resources caused an exception. This exception currently only applies to DescribeScalingPolicies. It is thrown when Application Auto Scaling is unable to retrieve the alarms associated with a scaling policy due to a client error, for example, if the role ARN specified for a scalable target does not have the proper permissions to call the CloudWatch DescribeAlarms API operation on behalf of your account.

_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The next token supplied was invalid.

_ConcurrentUpdateException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Concurrent updates caused an exception, for example, if you request an update to an Application Auto Scaling resource that already has a pending update.

_InternalServiceException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The service encountered an internal error.

_ObjectNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The specified object could not be found. For any Put or Register API operation, which depends on the existence of a scalable target, this exception is thrown if the scalable target with the specified service namespace, resource ID, and scalable dimension does not exist. For any Delete or Deregister API operation, this exception is thrown if the resource that is to be deleted or deregistered cannot be found.

_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Your account exceeded a limit. This exception is thrown when a per-account resource limit is exceeded. Application Auto Scaling has a limit of 40 scalable targets per account for Amazon ECS services, 50 scaling policies per scalable target, and 20 step adjustments per step scaling policy.

AdjustmentType

data AdjustmentType Source #

Instances

Bounded AdjustmentType Source # 
Enum AdjustmentType Source # 
Eq AdjustmentType Source # 
Data AdjustmentType Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AdjustmentType -> c AdjustmentType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AdjustmentType #

toConstr :: AdjustmentType -> Constr #

dataTypeOf :: AdjustmentType -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AdjustmentType) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdjustmentType) #

gmapT :: (forall b. Data b => b -> b) -> AdjustmentType -> AdjustmentType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AdjustmentType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AdjustmentType -> r #

gmapQ :: (forall d. Data d => d -> u) -> AdjustmentType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AdjustmentType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AdjustmentType -> m AdjustmentType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AdjustmentType -> m AdjustmentType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AdjustmentType -> m AdjustmentType #

Ord AdjustmentType Source # 
Read AdjustmentType Source # 
Show AdjustmentType Source # 
Generic AdjustmentType Source # 

Associated Types

type Rep AdjustmentType :: * -> * #

ToJSON AdjustmentType Source # 
FromJSON AdjustmentType Source # 
Hashable AdjustmentType Source # 
NFData AdjustmentType Source # 

Methods

rnf :: AdjustmentType -> () #

ToHeader AdjustmentType Source # 
ToQuery AdjustmentType Source # 
ToByteString AdjustmentType Source # 
FromText AdjustmentType Source # 
ToText AdjustmentType Source # 
type Rep AdjustmentType Source # 
type Rep AdjustmentType = D1 (MetaData "AdjustmentType" "Network.AWS.ApplicationAutoScaling.Types.Sum" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) ((:+:) (C1 (MetaCons "ChangeInCapacity" PrefixI False) U1) ((:+:) (C1 (MetaCons "ExactCapacity" PrefixI False) U1) (C1 (MetaCons "PercentChangeInCapacity" PrefixI False) U1)))

MetricAggregationType

data MetricAggregationType Source #

Constructors

Average 
Maximum 
Minimum 

Instances

Bounded MetricAggregationType Source # 
Enum MetricAggregationType Source # 
Eq MetricAggregationType Source # 
Data MetricAggregationType Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MetricAggregationType -> c MetricAggregationType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MetricAggregationType #

toConstr :: MetricAggregationType -> Constr #

dataTypeOf :: MetricAggregationType -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c MetricAggregationType) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MetricAggregationType) #

gmapT :: (forall b. Data b => b -> b) -> MetricAggregationType -> MetricAggregationType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MetricAggregationType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MetricAggregationType -> r #

gmapQ :: (forall d. Data d => d -> u) -> MetricAggregationType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MetricAggregationType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MetricAggregationType -> m MetricAggregationType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MetricAggregationType -> m MetricAggregationType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MetricAggregationType -> m MetricAggregationType #

Ord MetricAggregationType Source # 
Read MetricAggregationType Source # 
Show MetricAggregationType Source # 
Generic MetricAggregationType Source # 
ToJSON MetricAggregationType Source # 
FromJSON MetricAggregationType Source # 
Hashable MetricAggregationType Source # 
NFData MetricAggregationType Source # 

Methods

rnf :: MetricAggregationType -> () #

ToHeader MetricAggregationType Source # 
ToQuery MetricAggregationType Source # 
ToByteString MetricAggregationType Source # 
FromText MetricAggregationType Source # 
ToText MetricAggregationType Source # 
type Rep MetricAggregationType Source # 
type Rep MetricAggregationType = D1 (MetaData "MetricAggregationType" "Network.AWS.ApplicationAutoScaling.Types.Sum" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) ((:+:) (C1 (MetaCons "Average" PrefixI False) U1) ((:+:) (C1 (MetaCons "Maximum" PrefixI False) U1) (C1 (MetaCons "Minimum" PrefixI False) U1)))

PolicyType

data PolicyType Source #

Constructors

StepScaling 

Instances

Bounded PolicyType Source # 
Enum PolicyType Source # 
Eq PolicyType Source # 
Data PolicyType Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PolicyType -> c PolicyType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PolicyType #

toConstr :: PolicyType -> Constr #

dataTypeOf :: PolicyType -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PolicyType) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PolicyType) #

gmapT :: (forall b. Data b => b -> b) -> PolicyType -> PolicyType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PolicyType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PolicyType -> r #

gmapQ :: (forall d. Data d => d -> u) -> PolicyType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PolicyType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PolicyType -> m PolicyType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PolicyType -> m PolicyType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PolicyType -> m PolicyType #

Ord PolicyType Source # 
Read PolicyType Source # 
Show PolicyType Source # 
Generic PolicyType Source # 

Associated Types

type Rep PolicyType :: * -> * #

ToJSON PolicyType Source # 
FromJSON PolicyType Source # 
Hashable PolicyType Source # 
NFData PolicyType Source # 

Methods

rnf :: PolicyType -> () #

ToHeader PolicyType Source # 
ToQuery PolicyType Source # 
ToByteString PolicyType Source # 
FromText PolicyType Source # 
ToText PolicyType Source # 

Methods

toText :: PolicyType -> Text #

type Rep PolicyType Source # 
type Rep PolicyType = D1 (MetaData "PolicyType" "Network.AWS.ApplicationAutoScaling.Types.Sum" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "StepScaling" PrefixI False) U1)

ScalableDimension

data ScalableDimension Source #

Instances

Bounded ScalableDimension Source # 
Enum ScalableDimension Source # 
Eq ScalableDimension Source # 
Data ScalableDimension Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ScalableDimension -> c ScalableDimension #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ScalableDimension #

toConstr :: ScalableDimension -> Constr #

dataTypeOf :: ScalableDimension -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ScalableDimension) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ScalableDimension) #

gmapT :: (forall b. Data b => b -> b) -> ScalableDimension -> ScalableDimension #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ScalableDimension -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ScalableDimension -> r #

gmapQ :: (forall d. Data d => d -> u) -> ScalableDimension -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ScalableDimension -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ScalableDimension -> m ScalableDimension #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ScalableDimension -> m ScalableDimension #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ScalableDimension -> m ScalableDimension #

Ord ScalableDimension Source # 
Read ScalableDimension Source # 
Show ScalableDimension Source # 
Generic ScalableDimension Source # 
ToJSON ScalableDimension Source # 
FromJSON ScalableDimension Source # 
Hashable ScalableDimension Source # 
NFData ScalableDimension Source # 

Methods

rnf :: ScalableDimension -> () #

ToHeader ScalableDimension Source # 
ToQuery ScalableDimension Source # 
ToByteString ScalableDimension Source # 
FromText ScalableDimension Source # 
ToText ScalableDimension Source # 
type Rep ScalableDimension Source # 
type Rep ScalableDimension = D1 (MetaData "ScalableDimension" "Network.AWS.ApplicationAutoScaling.Types.Sum" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "EcsServiceDesiredCount" PrefixI False) U1)

ScalingActivityStatusCode

data ScalingActivityStatusCode Source #

Instances

Bounded ScalingActivityStatusCode Source # 
Enum ScalingActivityStatusCode Source # 
Eq ScalingActivityStatusCode Source # 
Data ScalingActivityStatusCode Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ScalingActivityStatusCode -> c ScalingActivityStatusCode #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ScalingActivityStatusCode #

toConstr :: ScalingActivityStatusCode -> Constr #

dataTypeOf :: ScalingActivityStatusCode -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ScalingActivityStatusCode) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ScalingActivityStatusCode) #

gmapT :: (forall b. Data b => b -> b) -> ScalingActivityStatusCode -> ScalingActivityStatusCode #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ScalingActivityStatusCode -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ScalingActivityStatusCode -> r #

gmapQ :: (forall d. Data d => d -> u) -> ScalingActivityStatusCode -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ScalingActivityStatusCode -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ScalingActivityStatusCode -> m ScalingActivityStatusCode #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ScalingActivityStatusCode -> m ScalingActivityStatusCode #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ScalingActivityStatusCode -> m ScalingActivityStatusCode #

Ord ScalingActivityStatusCode Source # 
Read ScalingActivityStatusCode Source # 
Show ScalingActivityStatusCode Source # 
Generic ScalingActivityStatusCode Source # 
FromJSON ScalingActivityStatusCode Source # 
Hashable ScalingActivityStatusCode Source # 
NFData ScalingActivityStatusCode Source # 
ToHeader ScalingActivityStatusCode Source # 
ToQuery ScalingActivityStatusCode Source # 
ToByteString ScalingActivityStatusCode Source # 
FromText ScalingActivityStatusCode Source # 
ToText ScalingActivityStatusCode Source # 
type Rep ScalingActivityStatusCode Source # 
type Rep ScalingActivityStatusCode = D1 (MetaData "ScalingActivityStatusCode" "Network.AWS.ApplicationAutoScaling.Types.Sum" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) ((:+:) ((:+:) (C1 (MetaCons "Failed" PrefixI False) U1) ((:+:) (C1 (MetaCons "InProgress" PrefixI False) U1) (C1 (MetaCons "Overridden" PrefixI False) U1))) ((:+:) (C1 (MetaCons "Pending" PrefixI False) U1) ((:+:) (C1 (MetaCons "Successful" PrefixI False) U1) (C1 (MetaCons "Unfulfilled" PrefixI False) U1))))

ServiceNamespace

data ServiceNamespace Source #

Constructors

Ecs 

Instances

Bounded ServiceNamespace Source # 
Enum ServiceNamespace Source # 
Eq ServiceNamespace Source # 
Data ServiceNamespace Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ServiceNamespace -> c ServiceNamespace #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ServiceNamespace #

toConstr :: ServiceNamespace -> Constr #

dataTypeOf :: ServiceNamespace -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ServiceNamespace) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ServiceNamespace) #

gmapT :: (forall b. Data b => b -> b) -> ServiceNamespace -> ServiceNamespace #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ServiceNamespace -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ServiceNamespace -> r #

gmapQ :: (forall d. Data d => d -> u) -> ServiceNamespace -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ServiceNamespace -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ServiceNamespace -> m ServiceNamespace #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ServiceNamespace -> m ServiceNamespace #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ServiceNamespace -> m ServiceNamespace #

Ord ServiceNamespace Source # 
Read ServiceNamespace Source # 
Show ServiceNamespace Source # 
Generic ServiceNamespace Source # 
ToJSON ServiceNamespace Source # 
FromJSON ServiceNamespace Source # 
Hashable ServiceNamespace Source # 
NFData ServiceNamespace Source # 

Methods

rnf :: ServiceNamespace -> () #

ToHeader ServiceNamespace Source # 
ToQuery ServiceNamespace Source # 
ToByteString ServiceNamespace Source # 
FromText ServiceNamespace Source # 
ToText ServiceNamespace Source # 
type Rep ServiceNamespace Source # 
type Rep ServiceNamespace = D1 (MetaData "ServiceNamespace" "Network.AWS.ApplicationAutoScaling.Types.Sum" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "Ecs" PrefixI False) U1)

Alarm

data Alarm Source #

An object representing a CloudWatch alarm associated with a scaling policy.

See: alarm smart constructor.

Instances

Eq Alarm Source # 

Methods

(==) :: Alarm -> Alarm -> Bool #

(/=) :: Alarm -> Alarm -> Bool #

Data Alarm Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Alarm -> c Alarm #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Alarm #

toConstr :: Alarm -> Constr #

dataTypeOf :: Alarm -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Alarm) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Alarm) #

gmapT :: (forall b. Data b => b -> b) -> Alarm -> Alarm #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Alarm -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Alarm -> r #

gmapQ :: (forall d. Data d => d -> u) -> Alarm -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Alarm -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Alarm -> m Alarm #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Alarm -> m Alarm #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Alarm -> m Alarm #

Read Alarm Source # 
Show Alarm Source # 

Methods

showsPrec :: Int -> Alarm -> ShowS #

show :: Alarm -> String #

showList :: [Alarm] -> ShowS #

Generic Alarm Source # 

Associated Types

type Rep Alarm :: * -> * #

Methods

from :: Alarm -> Rep Alarm x #

to :: Rep Alarm x -> Alarm #

FromJSON Alarm Source # 
Hashable Alarm Source # 

Methods

hashWithSalt :: Int -> Alarm -> Int #

hash :: Alarm -> Int #

NFData Alarm Source # 

Methods

rnf :: Alarm -> () #

type Rep Alarm Source # 
type Rep Alarm = D1 (MetaData "Alarm" "Network.AWS.ApplicationAutoScaling.Types.Product" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "Alarm'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_aAlarmName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_aAlarmARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

alarm Source #

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 :: Lens' Alarm Text Source #

The name of the alarm.

aAlarmARN :: Lens' Alarm Text Source #

The Amazon Resource Name (ARN) of the alarm.

ScalableTarget

data ScalableTarget Source #

An object representing a scalable target.

See: scalableTarget smart constructor.

Instances

Eq ScalableTarget Source # 
Data ScalableTarget Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ScalableTarget -> c ScalableTarget #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ScalableTarget #

toConstr :: ScalableTarget -> Constr #

dataTypeOf :: ScalableTarget -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ScalableTarget) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ScalableTarget) #

gmapT :: (forall b. Data b => b -> b) -> ScalableTarget -> ScalableTarget #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ScalableTarget -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ScalableTarget -> r #

gmapQ :: (forall d. Data d => d -> u) -> ScalableTarget -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ScalableTarget -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ScalableTarget -> m ScalableTarget #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ScalableTarget -> m ScalableTarget #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ScalableTarget -> m ScalableTarget #

Read ScalableTarget Source # 
Show ScalableTarget Source # 
Generic ScalableTarget Source # 

Associated Types

type Rep ScalableTarget :: * -> * #

FromJSON ScalableTarget Source # 
Hashable ScalableTarget Source # 
NFData ScalableTarget Source # 

Methods

rnf :: ScalableTarget -> () #

type Rep ScalableTarget Source # 
type Rep ScalableTarget = D1 (MetaData "ScalableTarget" "Network.AWS.ApplicationAutoScaling.Types.Product" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "ScalableTarget'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_stServiceNamespace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ServiceNamespace)) ((:*:) (S1 (MetaSel (Just Symbol "_stResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_stScalableDimension") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ScalableDimension)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_stMinCapacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_stMaxCapacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))) ((:*:) (S1 (MetaSel (Just Symbol "_stRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_stCreationTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 POSIX))))))

stServiceNamespace :: Lens' ScalableTarget ServiceNamespace Source #

The namespace for the AWS service that the scalable target is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

stResourceId :: Lens' ScalableTarget Text Source #

The unique identifier string for the resource associated with the scalable target. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as 'service\/default\/sample-webapp'.

stScalableDimension :: Lens' ScalableTarget ScalableDimension Source #

The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such as 'ecs:service:DesiredCount' for the desired task count of an Amazon ECS service.

stMinCapacity :: Lens' ScalableTarget Int Source #

The minimum value for this scalable target to scale in to in response to scaling activities.

stMaxCapacity :: Lens' ScalableTarget Int Source #

The maximum value for this scalable target to scale out to in response to scaling activities.

stRoleARN :: Lens' ScalableTarget Text Source #

The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.

stCreationTime :: Lens' ScalableTarget UTCTime Source #

The Unix timestamp for when the scalable target was created.

ScalingActivity

data ScalingActivity Source #

An object representing a scaling activity.

See: scalingActivity smart constructor.

Instances

Eq ScalingActivity Source # 
Data ScalingActivity Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ScalingActivity -> c ScalingActivity #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ScalingActivity #

toConstr :: ScalingActivity -> Constr #

dataTypeOf :: ScalingActivity -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ScalingActivity) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ScalingActivity) #

gmapT :: (forall b. Data b => b -> b) -> ScalingActivity -> ScalingActivity #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ScalingActivity -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ScalingActivity -> r #

gmapQ :: (forall d. Data d => d -> u) -> ScalingActivity -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ScalingActivity -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ScalingActivity -> m ScalingActivity #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ScalingActivity -> m ScalingActivity #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ScalingActivity -> m ScalingActivity #

Read ScalingActivity Source # 
Show ScalingActivity Source # 
Generic ScalingActivity Source # 
FromJSON ScalingActivity Source # 
Hashable ScalingActivity Source # 
NFData ScalingActivity Source # 

Methods

rnf :: ScalingActivity -> () #

type Rep ScalingActivity Source # 
type Rep ScalingActivity = D1 (MetaData "ScalingActivity" "Network.AWS.ApplicationAutoScaling.Types.Product" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "ScalingActivity'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_saStatusMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_saEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)))) ((:*:) (S1 (MetaSel (Just Symbol "_saDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_saActivityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_saServiceNamespace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ServiceNamespace))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_saResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_saScalableDimension") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ScalableDimension)) (S1 (MetaSel (Just Symbol "_saDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_saCause") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_saStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 POSIX)) (S1 (MetaSel (Just Symbol "_saStatusCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ScalingActivityStatusCode)))))))

saStatusMessage :: Lens' ScalingActivity (Maybe Text) Source #

A simple message about the current status of the scaling activity.

saEndTime :: Lens' ScalingActivity (Maybe UTCTime) Source #

The Unix timestamp for when the scaling activity ended.

saDetails :: Lens' ScalingActivity (Maybe Text) Source #

The details about the scaling activity.

saActivityId :: Lens' ScalingActivity Text Source #

The unique identifier string for the scaling activity.

saServiceNamespace :: Lens' ScalingActivity ServiceNamespace Source #

The namespace for the AWS service that the scaling activity is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

saResourceId :: Lens' ScalingActivity Text Source #

The unique identifier string for the resource associated with the scaling activity. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as 'service\/default\/sample-webapp'.

saScalableDimension :: Lens' ScalingActivity ScalableDimension Source #

The scalable dimension associated with the scaling activity. The scalable dimension contains the service namespace, resource type, and scaling property, such as 'ecs:service:DesiredCount' for the desired task count of an Amazon ECS service.

saDescription :: Lens' ScalingActivity Text Source #

A simple description of what action the scaling activity intends to accomplish.

saCause :: Lens' ScalingActivity Text Source #

A simple description of what caused the scaling activity to happen.

saStartTime :: Lens' ScalingActivity UTCTime Source #

The Unix timestamp for when the scaling activity began.

saStatusCode :: Lens' ScalingActivity ScalingActivityStatusCode Source #

Indicates the status of the scaling activity.

ScalingPolicy

data ScalingPolicy Source #

An object representing a scaling policy.

See: scalingPolicy smart constructor.

Instances

Eq ScalingPolicy Source # 
Data ScalingPolicy Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ScalingPolicy -> c ScalingPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ScalingPolicy #

toConstr :: ScalingPolicy -> Constr #

dataTypeOf :: ScalingPolicy -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ScalingPolicy) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ScalingPolicy) #

gmapT :: (forall b. Data b => b -> b) -> ScalingPolicy -> ScalingPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ScalingPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ScalingPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> ScalingPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ScalingPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ScalingPolicy -> m ScalingPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ScalingPolicy -> m ScalingPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ScalingPolicy -> m ScalingPolicy #

Read ScalingPolicy Source # 
Show ScalingPolicy Source # 
Generic ScalingPolicy Source # 

Associated Types

type Rep ScalingPolicy :: * -> * #

FromJSON ScalingPolicy Source # 
Hashable ScalingPolicy Source # 
NFData ScalingPolicy Source # 

Methods

rnf :: ScalingPolicy -> () #

type Rep ScalingPolicy Source # 

spAlarms :: Lens' ScalingPolicy [Alarm] Source #

The CloudWatch alarms that are associated with the scaling policy.

spPolicyARN :: Lens' ScalingPolicy Text Source #

The Amazon Resource Name (ARN) of the scaling policy.

spPolicyName :: Lens' ScalingPolicy Text Source #

The name of the scaling policy.

spServiceNamespace :: Lens' ScalingPolicy ServiceNamespace Source #

The namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

spResourceId :: Lens' ScalingPolicy Text Source #

The unique identifier string for the resource associated with the scaling policy. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as 'service\/default\/sample-webapp'.

spScalableDimension :: Lens' ScalingPolicy ScalableDimension Source #

The scalable dimension associated with the scaling policy. The scalable dimension contains the service namespace, resource type, and scaling property, such as 'ecs:service:DesiredCount' for the desired task count of an Amazon ECS service.

spPolicyType :: Lens' ScalingPolicy PolicyType Source #

The scaling policy type.

spCreationTime :: Lens' ScalingPolicy UTCTime Source #

The Unix timestamp for when the scaling policy was created.

StepAdjustment

data StepAdjustment Source #

An object representing a step adjustment for a StepScalingPolicyConfiguration. 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.

Instances

Eq StepAdjustment Source # 
Data StepAdjustment Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StepAdjustment -> c StepAdjustment #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StepAdjustment #

toConstr :: StepAdjustment -> Constr #

dataTypeOf :: StepAdjustment -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c StepAdjustment) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StepAdjustment) #

gmapT :: (forall b. Data b => b -> b) -> StepAdjustment -> StepAdjustment #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StepAdjustment -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StepAdjustment -> r #

gmapQ :: (forall d. Data d => d -> u) -> StepAdjustment -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StepAdjustment -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StepAdjustment -> m StepAdjustment #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StepAdjustment -> m StepAdjustment #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StepAdjustment -> m StepAdjustment #

Read StepAdjustment Source # 
Show StepAdjustment Source # 
Generic StepAdjustment Source # 

Associated Types

type Rep StepAdjustment :: * -> * #

ToJSON StepAdjustment Source # 
FromJSON StepAdjustment Source # 
Hashable StepAdjustment Source # 
NFData StepAdjustment Source # 

Methods

rnf :: StepAdjustment -> () #

type Rep StepAdjustment Source # 
type Rep StepAdjustment = D1 (MetaData "StepAdjustment" "Network.AWS.ApplicationAutoScaling.Types.Product" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "StepAdjustment'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_saMetricIntervalLowerBound") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Double))) ((:*:) (S1 (MetaSel (Just Symbol "_saMetricIntervalUpperBound") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Double))) (S1 (MetaSel (Just Symbol "_saScalingAdjustment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

stepAdjustment Source #

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 :: 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 scalable dimension while a negative number removes from the current scalable dimension.

StepScalingPolicyConfiguration

data StepScalingPolicyConfiguration Source #

An object representing a step scaling policy configuration.

See: stepScalingPolicyConfiguration smart constructor.

Instances

Eq StepScalingPolicyConfiguration Source # 
Data StepScalingPolicyConfiguration Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StepScalingPolicyConfiguration -> c StepScalingPolicyConfiguration #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StepScalingPolicyConfiguration #

toConstr :: StepScalingPolicyConfiguration -> Constr #

dataTypeOf :: StepScalingPolicyConfiguration -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c StepScalingPolicyConfiguration) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StepScalingPolicyConfiguration) #

gmapT :: (forall b. Data b => b -> b) -> StepScalingPolicyConfiguration -> StepScalingPolicyConfiguration #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StepScalingPolicyConfiguration -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StepScalingPolicyConfiguration -> r #

gmapQ :: (forall d. Data d => d -> u) -> StepScalingPolicyConfiguration -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StepScalingPolicyConfiguration -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StepScalingPolicyConfiguration -> m StepScalingPolicyConfiguration #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StepScalingPolicyConfiguration -> m StepScalingPolicyConfiguration #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StepScalingPolicyConfiguration -> m StepScalingPolicyConfiguration #

Read StepScalingPolicyConfiguration Source # 
Show StepScalingPolicyConfiguration Source # 
Generic StepScalingPolicyConfiguration Source # 
ToJSON StepScalingPolicyConfiguration Source # 
FromJSON StepScalingPolicyConfiguration Source # 
Hashable StepScalingPolicyConfiguration Source # 
NFData StepScalingPolicyConfiguration Source # 
type Rep StepScalingPolicyConfiguration Source # 
type Rep StepScalingPolicyConfiguration = D1 (MetaData "StepScalingPolicyConfiguration" "Network.AWS.ApplicationAutoScaling.Types.Product" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "StepScalingPolicyConfiguration'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_sspcStepAdjustments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [StepAdjustment]))) (S1 (MetaSel (Just Symbol "_sspcAdjustmentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AdjustmentType)))) ((:*:) (S1 (MetaSel (Just Symbol "_sspcCooldown") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) ((:*:) (S1 (MetaSel (Just Symbol "_sspcMetricAggregationType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MetricAggregationType))) (S1 (MetaSel (Just Symbol "_sspcMinAdjustmentMagnitude") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))))

stepScalingPolicyConfiguration :: StepScalingPolicyConfiguration Source #

Creates a value of StepScalingPolicyConfiguration with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sspcStepAdjustments :: Lens' StepScalingPolicyConfiguration [StepAdjustment] Source #

A set of adjustments that enable you to scale based on the size of the alarm breach.

sspcAdjustmentType :: Lens' StepScalingPolicyConfiguration (Maybe AdjustmentType) Source #

The adjustment type, which specifies how the ScalingAdjustment parameter in a StepAdjustment is interpreted.

sspcCooldown :: Lens' StepScalingPolicyConfiguration (Maybe Int) Source #

The amount of time, in seconds, after a scaling activity completes where previous trigger-related scaling activities can influence future scaling events.

For scale out policies, while Cooldown is in effect, the capacity that has been added by the previous scale out event that initiated the Cooldown is calculated as part of the desired capacity for the next scale out. The intention is to continuously (but not excessively) scale out. For example, an alarm triggers a step scaling policy to scale out an Amazon ECS service by 2 tasks, the scaling activity completes successfully, and a Cooldown period of 5 minutes starts. During the Cooldown period, if the alarm triggers the same policy again but at a more aggressive step adjustment to scale out the service by 3 tasks, the 2 tasks that were added in the previous scale out event are considered part of that capacity and only 1 additional task is added to the desired count.

For scale in policies, the Cooldown period is used to block subsequent scale in requests until it has expired. The intention is to scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the Cooldown period after a scale-in, Application Auto Scaling scales out your scalable target immediately.

sspcMetricAggregationType :: Lens' StepScalingPolicyConfiguration (Maybe MetricAggregationType) Source #

The aggregation type for the CloudWatch metrics. Valid values are Minimum, Maximum, and Average.

sspcMinAdjustmentMagnitude :: Lens' StepScalingPolicyConfiguration (Maybe Int) Source #

The minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount.