amazonka-application-autoscaling 1.4.2 → 1.4.3
raw patch · 13 files changed
+151/−435 lines, 13 filesdep ~amazonka-application-autoscalingdep ~amazonka-coredep ~amazonka-testPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: amazonka-application-autoscaling, amazonka-core, amazonka-test
API changes (from Hackage documentation)
Files
- README.md +5/−11
- amazonka-application-autoscaling.cabal +9/−15
- gen/Network/AWS/ApplicationAutoScaling.hs +4/−10
- gen/Network/AWS/ApplicationAutoScaling/DeleteScalingPolicy.hs +6/−20
- gen/Network/AWS/ApplicationAutoScaling/DeregisterScalableTarget.hs +5/−18
- gen/Network/AWS/ApplicationAutoScaling/DescribeScalableTargets.hs +9/−38
- gen/Network/AWS/ApplicationAutoScaling/DescribeScalingActivities.hs +9/−39
- gen/Network/AWS/ApplicationAutoScaling/DescribeScalingPolicies.hs +9/−38
- gen/Network/AWS/ApplicationAutoScaling/PutScalingPolicy.hs +8/−32
- gen/Network/AWS/ApplicationAutoScaling/RegisterScalableTarget.hs +9/−36
- gen/Network/AWS/ApplicationAutoScaling/Types.hs +5/−24
- gen/Network/AWS/ApplicationAutoScaling/Types/Product.hs +31/−112
- test/Test/AWS/Gen/ApplicationAutoScaling.hs +42/−42
README.md view
@@ -8,24 +8,18 @@ ## Version -`1.4.2`+`1.4.3` ## Description -Application Auto Scaling is a general purpose Auto Scaling service for-supported elastic AWS resources. With Application Auto Scaling, you can-automatically scale your AWS resources, with an experience similar to-that of Auto Scaling.+Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Auto Scaling. -At this time, Application Auto Scaling only supports scaling Amazon ECS-services.+At this time, Application Auto Scaling only supports scaling Amazon ECS services. -For example, you can use Application Auto Scaling to accomplish the-following tasks:+For example, you can use Application Auto Scaling to accomplish the following tasks: -- Define scaling policies for automatically adjusting your- application’s resources+- Define scaling policies for automatically adjusting your application’s resources - Scale your resources in response to CloudWatch alarms
amazonka-application-autoscaling.cabal view
@@ -1,5 +1,5 @@ name: amazonka-application-autoscaling-version: 1.4.2+version: 1.4.3 synopsis: Amazon Application Auto Scaling SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues@@ -13,19 +13,13 @@ cabal-version: >= 1.10 extra-source-files: README.md fixture/*.yaml fixture/*.proto description:- Application Auto Scaling is a general purpose Auto Scaling service for- supported elastic AWS resources. With Application Auto Scaling, you can- automatically scale your AWS resources, with an experience similar to- that of Auto Scaling.+ Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Auto Scaling. - At this time, Application Auto Scaling only supports scaling Amazon ECS- services.+ At this time, Application Auto Scaling only supports scaling Amazon ECS services. - For example, you can use Application Auto Scaling to accomplish the- following tasks:+ For example, you can use Application Auto Scaling to accomplish the following tasks: - - Define scaling policies for automatically adjusting your- application’s resources+ - Define scaling policies for automatically adjusting your application’s resources - Scale your resources in response to CloudWatch alarms @@ -72,7 +66,7 @@ , Network.AWS.ApplicationAutoScaling.Types.Sum build-depends:- amazonka-core == 1.4.2.*+ amazonka-core == 1.4.3.* , base >= 4.7 && < 5 test-suite amazonka-application-autoscaling-test@@ -92,9 +86,9 @@ , Test.AWS.ApplicationAutoScaling.Internal build-depends:- amazonka-core == 1.4.2.*- , amazonka-test == 1.4.2.*- , amazonka-application-autoscaling == 1.4.2.*+ amazonka-core == 1.4.3.*+ , amazonka-test == 1.4.3.*+ , amazonka-application-autoscaling == 1.4.3.* , base , bytestring , tasty
gen/Network/AWS/ApplicationAutoScaling.hs view
@@ -11,19 +11,13 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Application Auto Scaling is a general purpose Auto Scaling service for--- supported elastic AWS resources. With Application Auto Scaling, you can--- automatically scale your AWS resources, with an experience similar to--- that of Auto Scaling.+-- Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Auto Scaling. ----- At this time, Application Auto Scaling only supports scaling Amazon ECS--- services.+-- At this time, Application Auto Scaling only supports scaling Amazon ECS services. ----- For example, you can use Application Auto Scaling to accomplish the--- following tasks:+-- For example, you can use Application Auto Scaling to accomplish the following tasks: ----- - Define scaling policies for automatically adjusting your--- application’s resources+-- - Define scaling policies for automatically adjusting your application’s resources -- -- - Scale your resources in response to CloudWatch alarms --
gen/Network/AWS/ApplicationAutoScaling/DeleteScalingPolicy.hs view
@@ -18,16 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes an Application Auto Scaling scaling policy that was previously--- created. If you are no longer using a scaling policy, you can delete it--- with this operation.+-- Deletes an Application Auto Scaling scaling policy that was previously created. If you are no longer using a scaling policy, you can delete it with this operation. ----- Deleting a policy deletes the underlying alarm action, but does not--- delete the CloudWatch alarm, even if it no longer has an associated--- action.+-- Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm, even if it no longer has an associated action. ----- To create a new scaling policy or update an existing one, see--- < PutScalingPolicy>.+-- To create a new scaling policy or update an existing one, see < PutScalingPolicy>. module Network.AWS.ApplicationAutoScaling.DeleteScalingPolicy ( -- * Creating a Request@@ -90,24 +85,15 @@ dspPolicyName :: Lens' DeleteScalingPolicy Text dspPolicyName = lens _dspPolicyName (\ s a -> s{_dspPolicyName = a}); --- | The namespace for the AWS service that the scaling policy is associated--- with. For more information, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces>--- in the Amazon Web Services General Reference.+-- | The namespace for the AWS service that the scaling policy is associated with. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces> in the Amazon Web Services General Reference. dspServiceNamespace :: Lens' DeleteScalingPolicy ServiceNamespace dspServiceNamespace = lens _dspServiceNamespace (\ s a -> s{_dspServiceNamespace = a}); --- | 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'.+-- | 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'. dspResourceId :: Lens' DeleteScalingPolicy Text dspResourceId = lens _dspResourceId (\ s a -> s{_dspResourceId = a}); --- | 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.+-- | 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. dspScalableDimension :: Lens' DeleteScalingPolicy ScalableDimension dspScalableDimension = lens _dspScalableDimension (\ s a -> s{_dspScalableDimension = a});
gen/Network/AWS/ApplicationAutoScaling/DeregisterScalableTarget.hs view
@@ -18,13 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Deregisters a scalable target that was previously registered. If you are--- no longer using a scalable target, you can delete it with this--- operation. When you deregister a scalable target, all of the scaling--- policies that are associated with that scalable target are deleted.+-- Deregisters a scalable target that was previously registered. If you are no longer using a scalable target, you can delete it with this operation. When you deregister a scalable target, all of the scaling policies that are associated with that scalable target are deleted. ----- To create a new scalable target or update an existing one, see--- < RegisterScalableTarget>.+-- To create a new scalable target or update an existing one, see < RegisterScalableTarget>. module Network.AWS.ApplicationAutoScaling.DeregisterScalableTarget ( -- * Creating a Request@@ -77,24 +73,15 @@ , _derScalableDimension = pScalableDimension_ } --- | The namespace for the AWS service that the scalable target is associated--- with. For more information, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces>--- in the Amazon Web Services General Reference.+-- | The namespace for the AWS service that the scalable target is associated with. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces> in the Amazon Web Services General Reference. derServiceNamespace :: Lens' DeregisterScalableTarget ServiceNamespace derServiceNamespace = lens _derServiceNamespace (\ s a -> s{_derServiceNamespace = a}); --- | 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'.+-- | 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'. derResourceId :: Lens' DeregisterScalableTarget Text derResourceId = lens _derResourceId (\ s a -> s{_derResourceId = a}); --- | 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.+-- | 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. derScalableDimension :: Lens' DeregisterScalableTarget ScalableDimension derScalableDimension = lens _derScalableDimension (\ s a -> s{_derScalableDimension = a});
gen/Network/AWS/ApplicationAutoScaling/DescribeScalableTargets.hs view
@@ -18,15 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Provides descriptive information for scalable targets with a specified--- service namespace.+-- Provides descriptive information for scalable targets with a specified service namespace. ----- You can filter the results in a service namespace with the 'ResourceIds'--- and 'ScalableDimension' parameters.+-- You can filter the results in a service namespace with the 'ResourceIds' and 'ScalableDimension' parameters. ----- To create a new scalable target or update an existing one, see--- < RegisterScalableTarget>. If you are no longer using a scalable target,--- you can deregister it with < DeregisterScalableTarget>.+-- To create a new scalable target or update an existing one, see < RegisterScalableTarget>. If you are no longer using a scalable target, you can deregister it with < DeregisterScalableTarget>. module Network.AWS.ApplicationAutoScaling.DescribeScalableTargets ( -- * Creating a Request@@ -89,45 +85,23 @@ , _dstServiceNamespace = pServiceNamespace_ } --- | 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'. If you specify a scalable dimension,--- you must also specify a resource ID.+-- | 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'. If you specify a scalable dimension, you must also specify a resource ID. dstResourceIds :: Lens' DescribeScalableTargets [Text] dstResourceIds = lens _dstResourceIds (\ s a -> s{_dstResourceIds = a}) . _Default . _Coerce; --- | 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. If you specify a scalable dimension, you must--- also specify a resource ID.+-- | 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. If you specify a scalable dimension, you must also specify a resource ID. dstScalableDimension :: Lens' DescribeScalableTargets (Maybe ScalableDimension) dstScalableDimension = lens _dstScalableDimension (\ s a -> s{_dstScalableDimension = a}); --- | The 'NextToken' value returned from a previous paginated--- 'DescribeScalableTargets' request. Pagination continues from the end of--- the previous results that returned the 'NextToken' value. This value is--- 'null' when there are no more results to return.+-- | The 'NextToken' value returned from a previous paginated 'DescribeScalableTargets' request. Pagination continues from the end of the previous results that returned the 'NextToken' value. This value is 'null' when there are no more results to return. dstNextToken :: Lens' DescribeScalableTargets (Maybe Text) dstNextToken = lens _dstNextToken (\ s a -> s{_dstNextToken = a}); --- | The maximum number of scalable target results returned by--- 'DescribeScalableTargets' in paginated output. When this parameter is--- used, 'DescribeScalableTargets' returns up to 'MaxResults' results in a--- single page along with a 'NextToken' response element. The remaining--- results of the initial request can be seen by sending another--- 'DescribeScalableTargets' request with the returned 'NextToken' value.--- This value can be between 1 and 50. If this parameter is not used, then--- 'DescribeScalableTargets' returns up to 50 results and a 'NextToken'--- value, if applicable.+-- | The maximum number of scalable target results returned by 'DescribeScalableTargets' in paginated output. When this parameter is used, 'DescribeScalableTargets' returns up to 'MaxResults' results in a single page along with a 'NextToken' response element. The remaining results of the initial request can be seen by sending another 'DescribeScalableTargets' request with the returned 'NextToken' value. This value can be between 1 and 50. If this parameter is not used, then 'DescribeScalableTargets' returns up to 50 results and a 'NextToken' value, if applicable. dstMaxResults :: Lens' DescribeScalableTargets (Maybe Int) dstMaxResults = lens _dstMaxResults (\ s a -> s{_dstMaxResults = a}); --- | The namespace for the AWS service that the scalable target is associated--- with. For more information, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces>--- in the Amazon Web Services General Reference.+-- | The namespace for the AWS service that the scalable target is associated with. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces> in the Amazon Web Services General Reference. dstServiceNamespace :: Lens' DescribeScalableTargets ServiceNamespace dstServiceNamespace = lens _dstServiceNamespace (\ s a -> s{_dstServiceNamespace = a}); @@ -199,10 +173,7 @@ , _dstsrsResponseStatus = pResponseStatus_ } --- | The 'NextToken' value to include in a future 'DescribeScalableTargets'--- request. When the results of a 'DescribeScalableTargets' request exceed--- 'MaxResults', this value can be used to retrieve the next page of--- results. This value is 'null' when there are no more results to return.+-- | The 'NextToken' value to include in a future 'DescribeScalableTargets' request. When the results of a 'DescribeScalableTargets' request exceed 'MaxResults', this value can be used to retrieve the next page of results. This value is 'null' when there are no more results to return. dstsrsNextToken :: Lens' DescribeScalableTargetsResponse (Maybe Text) dstsrsNextToken = lens _dstsrsNextToken (\ s a -> s{_dstsrsNextToken = a});
gen/Network/AWS/ApplicationAutoScaling/DescribeScalingActivities.hs view
@@ -18,16 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Provides descriptive information for scaling activities with a specified--- service namespace.+-- Provides descriptive information for scaling activities with a specified service namespace. ----- You can filter the results in a service namespace with the 'ResourceId'--- and 'ScalableDimension' parameters.+-- You can filter the results in a service namespace with the 'ResourceId' and 'ScalableDimension' parameters. ----- Scaling activities are triggered by CloudWatch alarms that are--- associated with scaling policies. To view the existing scaling policies--- for a service namespace, see < DescribeScalingPolicies>. To create a new--- scaling policy or update an existing one, see < PutScalingPolicy>.+-- Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the existing scaling policies for a service namespace, see < DescribeScalingPolicies>. To create a new scaling policy or update an existing one, see < PutScalingPolicy>. module Network.AWS.ApplicationAutoScaling.DescribeScalingActivities ( -- * Creating a Request@@ -90,45 +85,23 @@ , _dsaServiceNamespace = pServiceNamespace_ } --- | 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. If you specify a scalable--- dimension, you must also specify a resource ID.+-- | 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. If you specify a scalable dimension, you must also specify a resource ID. dsaScalableDimension :: Lens' DescribeScalingActivities (Maybe ScalableDimension) dsaScalableDimension = lens _dsaScalableDimension (\ s a -> s{_dsaScalableDimension = a}); --- | 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'. If you specify a scalable dimension,--- you must also specify a resource ID.+-- | 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'. If you specify a scalable dimension, you must also specify a resource ID. dsaResourceId :: Lens' DescribeScalingActivities (Maybe Text) dsaResourceId = lens _dsaResourceId (\ s a -> s{_dsaResourceId = a}); --- | The 'NextToken' value returned from a previous paginated--- 'DescribeScalingActivities' request. Pagination continues from the end--- of the previous results that returned the 'NextToken' value. This value--- is 'null' when there are no more results to return.+-- | The 'NextToken' value returned from a previous paginated 'DescribeScalingActivities' request. Pagination continues from the end of the previous results that returned the 'NextToken' value. This value is 'null' when there are no more results to return. dsaNextToken :: Lens' DescribeScalingActivities (Maybe Text) dsaNextToken = lens _dsaNextToken (\ s a -> s{_dsaNextToken = a}); --- | The maximum number of scaling activity results returned by--- 'DescribeScalingActivities' in paginated output. When this parameter is--- used, 'DescribeScalingActivities' returns up to 'MaxResults' results in--- a single page along with a 'NextToken' response element. The remaining--- results of the initial request can be seen by sending another--- 'DescribeScalingActivities' request with the returned 'NextToken' value.--- This value can be between 1 and 50. If this parameter is not used, then--- 'DescribeScalingActivities' returns up to 50 results and a 'NextToken'--- value, if applicable.+-- | The maximum number of scaling activity results returned by 'DescribeScalingActivities' in paginated output. When this parameter is used, 'DescribeScalingActivities' returns up to 'MaxResults' results in a single page along with a 'NextToken' response element. The remaining results of the initial request can be seen by sending another 'DescribeScalingActivities' request with the returned 'NextToken' value. This value can be between 1 and 50. If this parameter is not used, then 'DescribeScalingActivities' returns up to 50 results and a 'NextToken' value, if applicable. dsaMaxResults :: Lens' DescribeScalingActivities (Maybe Int) dsaMaxResults = lens _dsaMaxResults (\ s a -> s{_dsaMaxResults = a}); --- | The namespace for the AWS service that the scaling activity is--- associated with. For more information, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces>--- in the Amazon Web Services General Reference.+-- | The namespace for the AWS service that the scaling activity is associated with. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces> in the Amazon Web Services General Reference. dsaServiceNamespace :: Lens' DescribeScalingActivities ServiceNamespace dsaServiceNamespace = lens _dsaServiceNamespace (\ s a -> s{_dsaServiceNamespace = a}); @@ -204,10 +177,7 @@ dsarsScalingActivities :: Lens' DescribeScalingActivitiesResponse [ScalingActivity] dsarsScalingActivities = lens _dsarsScalingActivities (\ s a -> s{_dsarsScalingActivities = a}) . _Default . _Coerce; --- | The 'NextToken' value to include in a future 'DescribeScalingActivities'--- request. When the results of a 'DescribeScalingActivities' request--- exceed 'MaxResults', this value can be used to retrieve the next page of--- results. This value is 'null' when there are no more results to return.+-- | The 'NextToken' value to include in a future 'DescribeScalingActivities' request. When the results of a 'DescribeScalingActivities' request exceed 'MaxResults', this value can be used to retrieve the next page of results. This value is 'null' when there are no more results to return. dsarsNextToken :: Lens' DescribeScalingActivitiesResponse (Maybe Text) dsarsNextToken = lens _dsarsNextToken (\ s a -> s{_dsarsNextToken = a});
gen/Network/AWS/ApplicationAutoScaling/DescribeScalingPolicies.hs view
@@ -18,15 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Provides descriptive information for scaling policies with a specified--- service namespace.+-- Provides descriptive information for scaling policies with a specified service namespace. ----- You can filter the results in a service namespace with the 'ResourceId',--- 'ScalableDimension', and 'PolicyNames' parameters.+-- You can filter the results in a service namespace with the 'ResourceId', 'ScalableDimension', and 'PolicyNames' parameters. ----- To create a new scaling policy or update an existing one, see--- < PutScalingPolicy>. If you are no longer using a scaling policy, you--- can delete it with < DeleteScalingPolicy>.+-- To create a new scaling policy or update an existing one, see < PutScalingPolicy>. If you are no longer using a scaling policy, you can delete it with < DeleteScalingPolicy>. module Network.AWS.ApplicationAutoScaling.DescribeScalingPolicies ( -- * Creating a Request@@ -98,45 +94,23 @@ dPolicyNames :: Lens' DescribeScalingPolicies [Text] dPolicyNames = lens _dPolicyNames (\ s a -> s{_dPolicyNames = a}) . _Default . _Coerce; --- | The scalable dimension of the scalable target that the scaling policy is--- associated with. 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. If you specify a--- scalable dimension, you must also specify a resource ID.+-- | The scalable dimension of the scalable target that the scaling policy is associated with. 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. If you specify a scalable dimension, you must also specify a resource ID. dScalableDimension :: Lens' DescribeScalingPolicies (Maybe ScalableDimension) dScalableDimension = lens _dScalableDimension (\ s a -> s{_dScalableDimension = a}); --- | The unique resource identifier string of the scalable target that the--- scaling policy is associated with. For Amazon ECS services, this value--- is the resource type, followed by the cluster name and service name,--- such as 'service\/default\/sample-webapp'. If you specify a scalable--- dimension, you must also specify a resource ID.+-- | The unique resource identifier string of the scalable target that the scaling policy is associated with. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as 'service\/default\/sample-webapp'. If you specify a scalable dimension, you must also specify a resource ID. dResourceId :: Lens' DescribeScalingPolicies (Maybe Text) dResourceId = lens _dResourceId (\ s a -> s{_dResourceId = a}); --- | The 'NextToken' value returned from a previous paginated--- 'DescribeScalingPolicies' request. Pagination continues from the end of--- the previous results that returned the 'NextToken' value. This value is--- 'null' when there are no more results to return.+-- | The 'NextToken' value returned from a previous paginated 'DescribeScalingPolicies' request. Pagination continues from the end of the previous results that returned the 'NextToken' value. This value is 'null' when there are no more results to return. dNextToken :: Lens' DescribeScalingPolicies (Maybe Text) dNextToken = lens _dNextToken (\ s a -> s{_dNextToken = a}); --- | The maximum number of scaling policy results returned by--- 'DescribeScalingPolicies' in paginated output. When this parameter is--- used, 'DescribeScalingPolicies' returns up to 'MaxResults' results in a--- single page along with a 'NextToken' response element. The remaining--- results of the initial request can be seen by sending another--- 'DescribeScalingPolicies' request with the returned 'NextToken' value.--- This value can be between 1 and 50. If this parameter is not used, then--- 'DescribeScalingPolicies' returns up to 50 results and a 'NextToken'--- value, if applicable.+-- | The maximum number of scaling policy results returned by 'DescribeScalingPolicies' in paginated output. When this parameter is used, 'DescribeScalingPolicies' returns up to 'MaxResults' results in a single page along with a 'NextToken' response element. The remaining results of the initial request can be seen by sending another 'DescribeScalingPolicies' request with the returned 'NextToken' value. This value can be between 1 and 50. If this parameter is not used, then 'DescribeScalingPolicies' returns up to 50 results and a 'NextToken' value, if applicable. dMaxResults :: Lens' DescribeScalingPolicies (Maybe Int) dMaxResults = lens _dMaxResults (\ s a -> s{_dMaxResults = a}); --- | The AWS service namespace of the scalable target that the scaling policy--- is associated with. For more information, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces>--- in the Amazon Web Services General Reference.+-- | The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces> in the Amazon Web Services General Reference. dServiceNamespace :: Lens' DescribeScalingPolicies ServiceNamespace dServiceNamespace = lens _dServiceNamespace (\ s a -> s{_dServiceNamespace = a}); @@ -209,10 +183,7 @@ , _drsResponseStatus = pResponseStatus_ } --- | The 'NextToken' value to include in a future 'DescribeScalingPolicies'--- request. When the results of a 'DescribeScalingPolicies' request exceed--- 'MaxResults', this value can be used to retrieve the next page of--- results. This value is 'null' when there are no more results to return.+-- | The 'NextToken' value to include in a future 'DescribeScalingPolicies' request. When the results of a 'DescribeScalingPolicies' request exceed 'MaxResults', this value can be used to retrieve the next page of results. This value is 'null' when there are no more results to return. drsNextToken :: Lens' DescribeScalingPoliciesResponse (Maybe Text) drsNextToken = lens _drsNextToken (\ s a -> s{_drsNextToken = a});
gen/Network/AWS/ApplicationAutoScaling/PutScalingPolicy.hs view
@@ -18,20 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates or updates a policy for an existing Application Auto Scaling--- scalable target. Each scalable target is identified by service--- namespace, a resource ID, and a scalable dimension, and a scaling policy--- applies to a scalable target that is identified by those three--- attributes. You cannot create a scaling policy without first registering--- a scalable target with < RegisterScalableTarget>.+-- Creates or updates a policy for an existing Application Auto Scaling scalable target. Each scalable target is identified by service namespace, a resource ID, and a scalable dimension, and a scaling policy applies to a scalable target that is identified by those three attributes. You cannot create a scaling policy without first registering a scalable target with < RegisterScalableTarget>. ----- To update an existing policy, use the existing policy name and set the--- parameters you want to change. Any existing parameter not changed in an--- update to an existing policy is not changed in this update request.+-- To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request. ----- You can view the existing scaling policies for a service namespace with--- < DescribeScalingPolicies>. If you are no longer using a scaling policy,--- you can delete it with < DeleteScalingPolicy>.+-- You can view the existing scaling policies for a service namespace with < DescribeScalingPolicies>. If you are no longer using a scaling policy, you can delete it with < DeleteScalingPolicy>. module Network.AWS.ApplicationAutoScaling.PutScalingPolicy ( -- * Creating a Request@@ -101,17 +92,11 @@ , _pspScalableDimension = pScalableDimension_ } --- | The policy type. This parameter is required if you are creating a new--- policy.+-- | The policy type. This parameter is required if you are creating a new policy. pspPolicyType :: Lens' PutScalingPolicy (Maybe PolicyType) pspPolicyType = lens _pspPolicyType (\ s a -> s{_pspPolicyType = a}); --- | The configuration for the step scaling policy. This parameter is--- required if you are creating a new policy. For more information, see--- <http://docs.aws.amazon.com/http:/docs.aws.amazon.com/ApplicationAutoScaling/latest/APIReference/API_StepScalingPolicyConfiguration.html StepScalingPolicyConfiguration>--- and--- <http://docs.aws.amazon.com/http:/docs.aws.amazon.com/ApplicationAutoScaling/latest/APIReference/API_StepAdjustment.html StepAdjustment>--- in the /Application Auto Scaling API Reference/.+-- | The configuration for the step scaling policy. This parameter is required if you are creating a new policy. For more information, see <http://docs.aws.amazon.com/http:/docs.aws.amazon.com/ApplicationAutoScaling/latest/APIReference/API_StepScalingPolicyConfiguration.html StepScalingPolicyConfiguration> and <http://docs.aws.amazon.com/http:/docs.aws.amazon.com/ApplicationAutoScaling/latest/APIReference/API_StepAdjustment.html StepAdjustment> in the /Application Auto Scaling API Reference/. pspStepScalingPolicyConfiguration :: Lens' PutScalingPolicy (Maybe StepScalingPolicyConfiguration) pspStepScalingPolicyConfiguration = lens _pspStepScalingPolicyConfiguration (\ s a -> s{_pspStepScalingPolicyConfiguration = a}); @@ -119,24 +104,15 @@ pspPolicyName :: Lens' PutScalingPolicy Text pspPolicyName = lens _pspPolicyName (\ s a -> s{_pspPolicyName = a}); --- | The AWS service namespace of the scalable target that this scaling--- policy applies to. For more information, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces>--- in the Amazon Web Services General Reference.+-- | The AWS service namespace of the scalable target that this scaling policy applies to. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces> in the Amazon Web Services General Reference. pspServiceNamespace :: Lens' PutScalingPolicy ServiceNamespace pspServiceNamespace = lens _pspServiceNamespace (\ s a -> s{_pspServiceNamespace = a}); --- | The unique resource identifier string for the scalable target that this--- scaling policy applies to. For Amazon ECS services, this value is the--- resource type, followed by the cluster name and service name, such as--- 'service\/default\/sample-webapp'.+-- | The unique resource identifier string for the scalable target that this scaling policy applies to. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as 'service\/default\/sample-webapp'. pspResourceId :: Lens' PutScalingPolicy Text pspResourceId = lens _pspResourceId (\ s a -> s{_pspResourceId = a}); --- | The scalable dimension of the scalable target that this scaling policy--- applies to. 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.+-- | The scalable dimension of the scalable target that this scaling policy applies to. 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. pspScalableDimension :: Lens' PutScalingPolicy ScalableDimension pspScalableDimension = lens _pspScalableDimension (\ s a -> s{_pspScalableDimension = a});
gen/Network/AWS/ApplicationAutoScaling/RegisterScalableTarget.hs view
@@ -18,19 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Registers or updates a scalable target. A scalable target is a resource--- that can be scaled up or down with Application Auto Scaling. After you--- have registered a scalable target, you can use this command to update--- the minimum and maximum values for your scalable dimension.+-- Registers or updates a scalable target. A scalable target is a resource that can be scaled up or down with Application Auto Scaling. After you have registered a scalable target, you can use this command to update the minimum and maximum values for your scalable dimension. ----- At this time, Application Auto Scaling only supports scaling Amazon ECS--- services.+-- At this time, Application Auto Scaling only supports scaling Amazon ECS services. ----- After you register a scalable target with Application Auto Scaling, you--- can create and apply scaling policies to it with < PutScalingPolicy>.--- You can view the existing scaling policies for a service namespace with--- < DescribeScalableTargets>. If you are no longer using a scalable--- target, you can deregister it with < DeregisterScalableTarget>.+-- After you register a scalable target with Application Auto Scaling, you can create and apply scaling policies to it with < PutScalingPolicy>. You can view the existing scaling policies for a service namespace with < DescribeScalableTargets>. If you are no longer using a scalable target, you can deregister it with < DeregisterScalableTarget>. module Network.AWS.ApplicationAutoScaling.RegisterScalableTarget ( -- * Creating a Request@@ -98,46 +90,27 @@ , _rstScalableDimension = pScalableDimension_ } --- | The maximum value for this scalable target to scale out to in response--- to scaling activities. This parameter is required if you are registering--- a new scalable target, and it is optional if you are updating an--- existing one.+-- | The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one. rstMaxCapacity :: Lens' RegisterScalableTarget (Maybe Int) rstMaxCapacity = lens _rstMaxCapacity (\ s a -> s{_rstMaxCapacity = a}); --- | The minimum value for this scalable target to scale in to in response to--- scaling activities. This parameter is required if you are registering a--- new scalable target, and it is optional if you are updating an existing--- one.+-- | The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one. rstMinCapacity :: Lens' RegisterScalableTarget (Maybe Int) rstMinCapacity = lens _rstMinCapacity (\ s a -> s{_rstMinCapacity = a}); --- | The ARN of the IAM role that allows Application Auto Scaling to modify--- your scalable target on your behalf. This parameter is required if you--- are registering a new scalable target, and it is optional if you are--- updating an existing one.+-- | The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one. rstRoleARN :: Lens' RegisterScalableTarget (Maybe Text) rstRoleARN = lens _rstRoleARN (\ s a -> s{_rstRoleARN = a}); --- | The namespace for the AWS service that the scalable target is associated--- with. For Amazon ECS services, the namespace value is 'ecs'. For more--- information, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces>--- in the Amazon Web Services General Reference.+-- | The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the namespace value is 'ecs'. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces> in the Amazon Web Services General Reference. rstServiceNamespace :: Lens' RegisterScalableTarget ServiceNamespace rstServiceNamespace = lens _rstServiceNamespace (\ s a -> s{_rstServiceNamespace = a}); --- | The unique identifier string for the resource to associate 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'.+-- | The unique identifier string for the resource to associate 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'. rstResourceId :: Lens' RegisterScalableTarget Text rstResourceId = lens _rstResourceId (\ s a -> s{_rstResourceId = a}); --- | 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.+-- | 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. rstScalableDimension :: Lens' RegisterScalableTarget ScalableDimension rstScalableDimension = lens _rstScalableDimension (\ s a -> s{_rstScalableDimension = a});
gen/Network/AWS/ApplicationAutoScaling/Types.hs view
@@ -144,19 +144,11 @@ | has (hasStatus 509) e = Just "limit_exceeded" | otherwise = Nothing --- | An exception was thrown for a validation issue. Review the available--- parameters for the API request.+-- | An exception was thrown for a validation issue. Review the available parameters for the API request. _ValidationException :: AsError a => Getting (First ServiceError) a ServiceError _ValidationException = _ServiceError . hasCode "ValidationException" --- | 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--- <http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html DescribeAlarms>--- API operation on behalf of your account.+-- | 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 <http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html DescribeAlarms> API operation on behalf of your account. _FailedResourceAccessException :: AsError a => Getting (First ServiceError) a ServiceError _FailedResourceAccessException = _ServiceError . hasCode "FailedResourceAccessException"@@ -166,9 +158,7 @@ _InvalidNextTokenException = _ServiceError . hasCode "InvalidNextTokenException" --- | Concurrent updates caused an exception, for example, if you request an--- update to an Application Auto Scaling resource that already has a--- pending update.+-- | Concurrent updates caused an exception, for example, if you request an update to an Application Auto Scaling resource that already has a pending update. _ConcurrentUpdateException :: AsError a => Getting (First ServiceError) a ServiceError _ConcurrentUpdateException = _ServiceError . hasCode "ConcurrentUpdateException"@@ -177,19 +167,10 @@ _InternalServiceException :: AsError a => Getting (First ServiceError) a ServiceError _InternalServiceException = _ServiceError . hasCode "InternalServiceException" --- | 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.+-- | 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. _ObjectNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError _ObjectNotFoundException = _ServiceError . hasCode "ObjectNotFoundException" --- | 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.+-- | 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. _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError _LimitExceededException = _ServiceError . hasCode "LimitExceededException"
gen/Network/AWS/ApplicationAutoScaling/Types/Product.hs view
@@ -21,8 +21,7 @@ import Network.AWS.Lens import Network.AWS.Prelude --- | An object representing a CloudWatch alarm associated with a scaling--- policy.+-- | An object representing a CloudWatch alarm associated with a scaling policy. -- -- /See:/ 'alarm' smart constructor. data Alarm = Alarm'@@ -115,39 +114,27 @@ , _stCreationTime = _Time # pCreationTime_ } --- | The namespace for the AWS service that the scalable target is associated--- with. For more information, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces>--- in the Amazon Web Services General Reference.+-- | The namespace for the AWS service that the scalable target is associated with. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces> in the Amazon Web Services General Reference. stServiceNamespace :: Lens' ScalableTarget ServiceNamespace stServiceNamespace = lens _stServiceNamespace (\ s a -> s{_stServiceNamespace = a}); --- | 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'.+-- | 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'. stResourceId :: Lens' ScalableTarget Text stResourceId = lens _stResourceId (\ s a -> s{_stResourceId = a}); --- | 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.+-- | 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. stScalableDimension :: Lens' ScalableTarget ScalableDimension stScalableDimension = lens _stScalableDimension (\ s a -> s{_stScalableDimension = a}); --- | The minimum value for this scalable target to scale in to in response to--- scaling activities.+-- | The minimum value for this scalable target to scale in to in response to scaling activities. stMinCapacity :: Lens' ScalableTarget Int stMinCapacity = lens _stMinCapacity (\ s a -> s{_stMinCapacity = a}); --- | The maximum value for this scalable target to scale out to in response--- to scaling activities.+-- | The maximum value for this scalable target to scale out to in response to scaling activities. stMaxCapacity :: Lens' ScalableTarget Int stMaxCapacity = lens _stMaxCapacity (\ s a -> s{_stMaxCapacity = a}); --- | The ARN of the IAM role that allows Application Auto Scaling to modify--- your scalable target on your behalf.+-- | The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. stRoleARN :: Lens' ScalableTarget Text stRoleARN = lens _stRoleARN (\ s a -> s{_stRoleARN = a}); @@ -254,29 +241,19 @@ saActivityId :: Lens' ScalingActivity Text saActivityId = lens _saActivityId (\ s a -> s{_saActivityId = a}); --- | The namespace for the AWS service that the scaling activity is--- associated with. For more information, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces>--- in the Amazon Web Services General Reference.+-- | The namespace for the AWS service that the scaling activity is associated with. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces> in the Amazon Web Services General Reference. saServiceNamespace :: Lens' ScalingActivity ServiceNamespace saServiceNamespace = lens _saServiceNamespace (\ s a -> s{_saServiceNamespace = a}); --- | 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'.+-- | 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'. saResourceId :: Lens' ScalingActivity Text saResourceId = lens _saResourceId (\ s a -> s{_saResourceId = a}); --- | 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.+-- | 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. saScalableDimension :: Lens' ScalingActivity ScalableDimension saScalableDimension = lens _saScalableDimension (\ s a -> s{_saScalableDimension = a}); --- | A simple description of what action the scaling activity intends to--- accomplish.+-- | A simple description of what action the scaling activity intends to accomplish. saDescription :: Lens' ScalingActivity Text saDescription = lens _saDescription (\ s a -> s{_saDescription = a}); @@ -386,24 +363,15 @@ spPolicyName :: Lens' ScalingPolicy Text spPolicyName = lens _spPolicyName (\ s a -> s{_spPolicyName = a}); --- | The namespace for the AWS service that the scaling policy is associated--- with. For more information, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces>--- in the Amazon Web Services General Reference.+-- | The namespace for the AWS service that the scaling policy is associated with. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces AWS Service Namespaces> in the Amazon Web Services General Reference. spServiceNamespace :: Lens' ScalingPolicy ServiceNamespace spServiceNamespace = lens _spServiceNamespace (\ s a -> s{_spServiceNamespace = a}); --- | 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'.+-- | 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'. spResourceId :: Lens' ScalingPolicy Text spResourceId = lens _spResourceId (\ s a -> s{_spResourceId = a}); --- | 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.+-- | 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. spScalableDimension :: Lens' ScalingPolicy ScalableDimension spScalableDimension = lens _spScalableDimension (\ s a -> s{_spScalableDimension = a}); @@ -434,36 +402,23 @@ instance NFData ScalingPolicy --- | 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.+-- | 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:+-- 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 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.+-- - 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 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.+-- - 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.+-- - The upper and lower bound can\'t be null in the same step adjustment. -- -- -- /See:/ 'stepAdjustment' smart constructor.@@ -492,29 +447,17 @@ , _saScalingAdjustment = pScalingAdjustment_ } --- | 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.+-- | 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. saMetricIntervalLowerBound :: Lens' StepAdjustment (Maybe Double) saMetricIntervalLowerBound = lens _saMetricIntervalLowerBound (\ s a -> s{_saMetricIntervalLowerBound = a}); --- | 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 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. saMetricIntervalUpperBound :: Lens' StepAdjustment (Maybe Double) saMetricIntervalUpperBound = lens _saMetricIntervalUpperBound (\ s a -> s{_saMetricIntervalUpperBound = a}); --- | 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.+-- | 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. saScalingAdjustment :: Lens' StepAdjustment Int saScalingAdjustment = lens _saScalingAdjustment (\ s a -> s{_saScalingAdjustment = a}); @@ -576,51 +519,27 @@ , _sspcMinAdjustmentMagnitude = Nothing } --- | A set of adjustments that enable you to scale based on the size of the--- alarm breach.+-- | A set of adjustments that enable you to scale based on the size of the alarm breach. sspcStepAdjustments :: Lens' StepScalingPolicyConfiguration [StepAdjustment] sspcStepAdjustments = lens _sspcStepAdjustments (\ s a -> s{_sspcStepAdjustments = a}) . _Default . _Coerce; --- | The adjustment type, which specifies how the 'ScalingAdjustment'--- parameter in a < StepAdjustment> is interpreted.+-- | The adjustment type, which specifies how the 'ScalingAdjustment' parameter in a < StepAdjustment> is interpreted. sspcAdjustmentType :: Lens' StepScalingPolicyConfiguration (Maybe AdjustmentType) sspcAdjustmentType = lens _sspcAdjustmentType (\ s a -> s{_sspcAdjustmentType = a}); --- | The amount of time, in seconds, after a scaling activity completes where--- previous trigger-related scaling activities can influence future scaling--- events.+-- | 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 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.+-- 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. sspcCooldown :: Lens' StepScalingPolicyConfiguration (Maybe Int) sspcCooldown = lens _sspcCooldown (\ s a -> s{_sspcCooldown = a}); --- | The aggregation type for the CloudWatch metrics. Valid values are--- 'Minimum', 'Maximum', and 'Average'.+-- | The aggregation type for the CloudWatch metrics. Valid values are 'Minimum', 'Maximum', and 'Average'. sspcMetricAggregationType :: Lens' StepScalingPolicyConfiguration (Maybe MetricAggregationType) sspcMetricAggregationType = lens _sspcMetricAggregationType (\ s a -> s{_sspcMetricAggregationType = a}); --- | 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.+-- | 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. sspcMinAdjustmentMagnitude :: Lens' StepScalingPolicyConfiguration (Maybe Int) sspcMinAdjustmentMagnitude = lens _sspcMinAdjustmentMagnitude (\ s a -> s{_sspcMinAdjustmentMagnitude = a});
test/Test/AWS/Gen/ApplicationAutoScaling.hs view
@@ -28,49 +28,49 @@ -- fixtures :: TestTree -- fixtures = -- [ testGroup "request"--- [ testDeleteScalingPolicy $+-- [ requestDeleteScalingPolicy $ -- deleteScalingPolicy ----- , testPutScalingPolicy $+-- , requestPutScalingPolicy $ -- putScalingPolicy ----- , testRegisterScalableTarget $+-- , requestRegisterScalableTarget $ -- registerScalableTarget ----- , testDescribeScalingPolicies $+-- , requestDescribeScalingPolicies $ -- describeScalingPolicies ----- , testDescribeScalableTargets $+-- , requestDescribeScalableTargets $ -- describeScalableTargets ----- , testDescribeScalingActivities $+-- , requestDescribeScalingActivities $ -- describeScalingActivities ----- , testDeregisterScalableTarget $+-- , requestDeregisterScalableTarget $ -- deregisterScalableTarget -- -- ] -- , testGroup "response"--- [ testDeleteScalingPolicyResponse $+-- [ responseDeleteScalingPolicy $ -- deleteScalingPolicyResponse ----- , testPutScalingPolicyResponse $+-- , responsePutScalingPolicy $ -- putScalingPolicyResponse ----- , testRegisterScalableTargetResponse $+-- , responseRegisterScalableTarget $ -- registerScalableTargetResponse ----- , testDescribeScalingPoliciesResponse $+-- , responseDescribeScalingPolicies $ -- describeScalingPoliciesResponse ----- , testDescribeScalableTargetsResponse $+-- , responseDescribeScalableTargets $ -- describeScalableTargetsResponse ----- , testDescribeScalingActivitiesResponse $+-- , responseDescribeScalingActivities $ -- describeScalingActivitiesResponse ----- , testDeregisterScalableTargetResponse $+-- , responseDeregisterScalableTarget $ -- deregisterScalableTargetResponse -- -- ]@@ -78,87 +78,87 @@ -- Requests -testDeleteScalingPolicy :: DeleteScalingPolicy -> TestTree-testDeleteScalingPolicy = req+requestDeleteScalingPolicy :: DeleteScalingPolicy -> TestTree+requestDeleteScalingPolicy = req "DeleteScalingPolicy" "fixture/DeleteScalingPolicy.yaml" -testPutScalingPolicy :: PutScalingPolicy -> TestTree-testPutScalingPolicy = req+requestPutScalingPolicy :: PutScalingPolicy -> TestTree+requestPutScalingPolicy = req "PutScalingPolicy" "fixture/PutScalingPolicy.yaml" -testRegisterScalableTarget :: RegisterScalableTarget -> TestTree-testRegisterScalableTarget = req+requestRegisterScalableTarget :: RegisterScalableTarget -> TestTree+requestRegisterScalableTarget = req "RegisterScalableTarget" "fixture/RegisterScalableTarget.yaml" -testDescribeScalingPolicies :: DescribeScalingPolicies -> TestTree-testDescribeScalingPolicies = req+requestDescribeScalingPolicies :: DescribeScalingPolicies -> TestTree+requestDescribeScalingPolicies = req "DescribeScalingPolicies" "fixture/DescribeScalingPolicies.yaml" -testDescribeScalableTargets :: DescribeScalableTargets -> TestTree-testDescribeScalableTargets = req+requestDescribeScalableTargets :: DescribeScalableTargets -> TestTree+requestDescribeScalableTargets = req "DescribeScalableTargets" "fixture/DescribeScalableTargets.yaml" -testDescribeScalingActivities :: DescribeScalingActivities -> TestTree-testDescribeScalingActivities = req+requestDescribeScalingActivities :: DescribeScalingActivities -> TestTree+requestDescribeScalingActivities = req "DescribeScalingActivities" "fixture/DescribeScalingActivities.yaml" -testDeregisterScalableTarget :: DeregisterScalableTarget -> TestTree-testDeregisterScalableTarget = req+requestDeregisterScalableTarget :: DeregisterScalableTarget -> TestTree+requestDeregisterScalableTarget = req "DeregisterScalableTarget" "fixture/DeregisterScalableTarget.yaml" -- Responses -testDeleteScalingPolicyResponse :: DeleteScalingPolicyResponse -> TestTree-testDeleteScalingPolicyResponse = res+responseDeleteScalingPolicy :: DeleteScalingPolicyResponse -> TestTree+responseDeleteScalingPolicy = res "DeleteScalingPolicyResponse" "fixture/DeleteScalingPolicyResponse.proto" applicationAutoScaling (Proxy :: Proxy DeleteScalingPolicy) -testPutScalingPolicyResponse :: PutScalingPolicyResponse -> TestTree-testPutScalingPolicyResponse = res+responsePutScalingPolicy :: PutScalingPolicyResponse -> TestTree+responsePutScalingPolicy = res "PutScalingPolicyResponse" "fixture/PutScalingPolicyResponse.proto" applicationAutoScaling (Proxy :: Proxy PutScalingPolicy) -testRegisterScalableTargetResponse :: RegisterScalableTargetResponse -> TestTree-testRegisterScalableTargetResponse = res+responseRegisterScalableTarget :: RegisterScalableTargetResponse -> TestTree+responseRegisterScalableTarget = res "RegisterScalableTargetResponse" "fixture/RegisterScalableTargetResponse.proto" applicationAutoScaling (Proxy :: Proxy RegisterScalableTarget) -testDescribeScalingPoliciesResponse :: DescribeScalingPoliciesResponse -> TestTree-testDescribeScalingPoliciesResponse = res+responseDescribeScalingPolicies :: DescribeScalingPoliciesResponse -> TestTree+responseDescribeScalingPolicies = res "DescribeScalingPoliciesResponse" "fixture/DescribeScalingPoliciesResponse.proto" applicationAutoScaling (Proxy :: Proxy DescribeScalingPolicies) -testDescribeScalableTargetsResponse :: DescribeScalableTargetsResponse -> TestTree-testDescribeScalableTargetsResponse = res+responseDescribeScalableTargets :: DescribeScalableTargetsResponse -> TestTree+responseDescribeScalableTargets = res "DescribeScalableTargetsResponse" "fixture/DescribeScalableTargetsResponse.proto" applicationAutoScaling (Proxy :: Proxy DescribeScalableTargets) -testDescribeScalingActivitiesResponse :: DescribeScalingActivitiesResponse -> TestTree-testDescribeScalingActivitiesResponse = res+responseDescribeScalingActivities :: DescribeScalingActivitiesResponse -> TestTree+responseDescribeScalingActivities = res "DescribeScalingActivitiesResponse" "fixture/DescribeScalingActivitiesResponse.proto" applicationAutoScaling (Proxy :: Proxy DescribeScalingActivities) -testDeregisterScalableTargetResponse :: DeregisterScalableTargetResponse -> TestTree-testDeregisterScalableTargetResponse = res+responseDeregisterScalableTarget :: DeregisterScalableTargetResponse -> TestTree+responseDeregisterScalableTarget = res "DeregisterScalableTargetResponse" "fixture/DeregisterScalableTargetResponse.proto" applicationAutoScaling