amazonka-application-autoscaling 1.5.0 → 1.6.0
raw patch · 21 files changed
+476/−427 lines, 21 filesdep ~amazonka-coredep ~amazonka-testPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: amazonka-core, amazonka-test
API changes (from Hackage documentation)
+ Network.AWS.ApplicationAutoScaling: ALBRequestCountPerTarget :: MetricType
+ Network.AWS.ApplicationAutoScaling: EC2SpotFleetRequestAverageCPUUtilization :: MetricType
+ Network.AWS.ApplicationAutoScaling: EC2SpotFleetRequestAverageNetworkIn :: MetricType
+ Network.AWS.ApplicationAutoScaling: EC2SpotFleetRequestAverageNetworkOut :: MetricType
+ Network.AWS.ApplicationAutoScaling: ECSServiceAverageCPUUtilization :: MetricType
+ Network.AWS.ApplicationAutoScaling: ECSServiceAverageMemoryUtilization :: MetricType
+ Network.AWS.ApplicationAutoScaling: RDS :: ServiceNamespace
+ Network.AWS.ApplicationAutoScaling: RDSClusterReadReplicaCount :: ScalableDimension
+ Network.AWS.ApplicationAutoScaling: RDSReaderAverageCPUUtilization :: MetricType
+ Network.AWS.ApplicationAutoScaling: RDSReaderAverageDatabaseConnections :: MetricType
+ Network.AWS.ApplicationAutoScaling: SageMakerVariantInvocationsPerInstance :: MetricType
+ Network.AWS.ApplicationAutoScaling: Sagemaker :: ServiceNamespace
+ Network.AWS.ApplicationAutoScaling: SagemakerVariantDesiredInstanceCount :: ScalableDimension
+ Network.AWS.ApplicationAutoScaling.Types: ALBRequestCountPerTarget :: MetricType
+ Network.AWS.ApplicationAutoScaling.Types: EC2SpotFleetRequestAverageCPUUtilization :: MetricType
+ Network.AWS.ApplicationAutoScaling.Types: EC2SpotFleetRequestAverageNetworkIn :: MetricType
+ Network.AWS.ApplicationAutoScaling.Types: EC2SpotFleetRequestAverageNetworkOut :: MetricType
+ Network.AWS.ApplicationAutoScaling.Types: ECSServiceAverageCPUUtilization :: MetricType
+ Network.AWS.ApplicationAutoScaling.Types: ECSServiceAverageMemoryUtilization :: MetricType
+ Network.AWS.ApplicationAutoScaling.Types: RDS :: ServiceNamespace
+ Network.AWS.ApplicationAutoScaling.Types: RDSClusterReadReplicaCount :: ScalableDimension
+ Network.AWS.ApplicationAutoScaling.Types: RDSReaderAverageCPUUtilization :: MetricType
+ Network.AWS.ApplicationAutoScaling.Types: RDSReaderAverageDatabaseConnections :: MetricType
+ Network.AWS.ApplicationAutoScaling.Types: SageMakerVariantInvocationsPerInstance :: MetricType
+ Network.AWS.ApplicationAutoScaling.Types: Sagemaker :: ServiceNamespace
+ Network.AWS.ApplicationAutoScaling.Types: SagemakerVariantDesiredInstanceCount :: ScalableDimension
Files
- README.md +1/−1
- amazonka-application-autoscaling.cabal +5/−5
- gen/Network/AWS/ApplicationAutoScaling.hs +11/−3
- gen/Network/AWS/ApplicationAutoScaling/DeleteScalingPolicy.hs +15/−15
- gen/Network/AWS/ApplicationAutoScaling/DeleteScheduledAction.hs +15/−15
- gen/Network/AWS/ApplicationAutoScaling/DeregisterScalableTarget.hs +13/−13
- gen/Network/AWS/ApplicationAutoScaling/DescribeScalableTargets.hs +28/−28
- gen/Network/AWS/ApplicationAutoScaling/DescribeScalingActivities.hs +25/−25
- gen/Network/AWS/ApplicationAutoScaling/DescribeScalingPolicies.hs +27/−27
- gen/Network/AWS/ApplicationAutoScaling/DescribeScheduledActions.hs +27/−27
- gen/Network/AWS/ApplicationAutoScaling/PutScalingPolicy.hs +32/−32
- gen/Network/AWS/ApplicationAutoScaling/PutScheduledAction.hs +24/−24
- gen/Network/AWS/ApplicationAutoScaling/RegisterScalableTarget.hs +27/−27
- gen/Network/AWS/ApplicationAutoScaling/Types.hs +21/−19
- gen/Network/AWS/ApplicationAutoScaling/Types/Product.hs +156/−156
- gen/Network/AWS/ApplicationAutoScaling/Types/Sum.hs +44/−5
- gen/Network/AWS/ApplicationAutoScaling/Waiters.hs +1/−1
- test/Main.hs +1/−1
- test/Test/AWS/ApplicationAutoScaling.hs +1/−1
- test/Test/AWS/ApplicationAutoScaling/Internal.hs +1/−1
- test/Test/AWS/Gen/ApplicationAutoScaling.hs +1/−1
README.md view
@@ -8,7 +8,7 @@ ## Version -`1.5.0`+`1.6.0` ## Description
amazonka-application-autoscaling.cabal view
@@ -1,5 +1,5 @@ name: amazonka-application-autoscaling-version: 1.5.0+version: 1.6.0 synopsis: Amazon Application Auto Scaling SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues@@ -7,7 +7,7 @@ license-file: LICENSE author: Brendan Hay maintainer: Brendan Hay <brendan.g.hay+amazonka@gmail.com>-copyright: Copyright (c) 2013-2017 Brendan Hay+copyright: Copyright (c) 2013-2018 Brendan Hay category: Network, AWS, Cloud, Distributed Computing build-type: Simple cabal-version: >= 1.10@@ -63,7 +63,7 @@ , Network.AWS.ApplicationAutoScaling.Types.Sum build-depends:- amazonka-core == 1.5.0.*+ amazonka-core == 1.6.0.* , base >= 4.7 && < 5 test-suite amazonka-application-autoscaling-test@@ -83,8 +83,8 @@ , Test.AWS.ApplicationAutoScaling.Internal build-depends:- amazonka-core == 1.5.0.*- , amazonka-test == 1.5.0.*+ amazonka-core == 1.6.0.*+ , amazonka-test == 1.6.0.* , amazonka-application-autoscaling , base , bytestring
gen/Network/AWS/ApplicationAutoScaling.hs view
@@ -5,26 +5,28 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- With Application Auto Scaling, you can automatically scale your AWS resources. The experience is similar to that of <https://aws.amazon.com/autoscaling/ Auto Scaling> . You can use Application Auto Scaling to accomplish the following tasks:+-- With Application Auto Scaling, you can configure automatic scaling for your scalable AWS resources. You can use Application Auto Scaling to accomplish the following tasks: -- -- -- * Define scaling policies to automatically scale your AWS resources -- -- * Scale your resources in response to CloudWatch alarms --+-- * Schedule one-time or recurring scaling actions+-- -- * View the history of your scaling events -- -- -- -- Application Auto Scaling can scale the following AWS resources: ----- * Amazon ECS services. For more information, see <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html Service Auto Scaling> in the /Amazon EC2 Container Service Developer Guide/ .+-- * Amazon ECS services. For more information, see <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html Service Auto Scaling> in the /Amazon Elastic Container Service Developer Guide/ . -- -- * Amazon EC2 Spot fleets. For more information, see <http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-auto-scaling.html Automatic Scaling for Spot Fleet> in the /Amazon EC2 User Guide/ . --@@ -34,7 +36,13 @@ -- -- * Provisioned read and write capacity for Amazon DynamoDB tables and global secondary indexes. For more information, see <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html Managing Throughput Capacity Automatically with DynamoDB Auto Scaling> in the /Amazon DynamoDB Developer Guide/ . --+-- * Amazon Aurora Replicas. For more information, see <http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Integrating.AutoScaling.html Using Amazon Aurora Auto Scaling with Aurora Replicas> . --+-- * Amazon SageMaker endpoints. For more information, see <http://docs.aws.amazon.com/sagemaker/latest/dg/endpoint-auto-scaling.html Automatically Scaling Amazon SageMaker Models> .+--+--+--+-- To configure automatic scaling for multiple resources across multiple services, use AWS Auto Scaling to create a scaling plan for your application. For more information, see <http://aws.amazon.com/autoscaling AWS Auto Scaling> . -- -- For a list of supported regions, see <http://docs.aws.amazon.com/general/latest/gr/rande.html#as-app_region AWS Regions and Endpoints: Application Auto Scaling> in the /AWS General Reference/ . --
gen/Network/AWS/ApplicationAutoScaling/DeleteScalingPolicy.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.DeleteScalingPolicy--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -67,9 +67,9 @@ -- -- * 'dspServiceNamespace' - The namespace of the AWS service. 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/ . ----- * 'dspResourceId' - The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'dspResourceId' - The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . ----- * 'dspScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'dspScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. deleteScalingPolicy :: Text -- ^ 'dspPolicyName' -> ServiceNamespace -- ^ 'dspServiceNamespace'@@ -78,28 +78,28 @@ -> DeleteScalingPolicy deleteScalingPolicy pPolicyName_ pServiceNamespace_ pResourceId_ pScalableDimension_ = DeleteScalingPolicy'- { _dspPolicyName = pPolicyName_- , _dspServiceNamespace = pServiceNamespace_- , _dspResourceId = pResourceId_- , _dspScalableDimension = pScalableDimension_- }+ { _dspPolicyName = pPolicyName_+ , _dspServiceNamespace = pServiceNamespace_+ , _dspResourceId = pResourceId_+ , _dspScalableDimension = pScalableDimension_+ } -- | The name of the scaling policy. dspPolicyName :: Lens' DeleteScalingPolicy Text-dspPolicyName = lens _dspPolicyName (\ s a -> s{_dspPolicyName = a});+dspPolicyName = lens _dspPolicyName (\ s a -> s{_dspPolicyName = a}) -- | The namespace of the AWS service. 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});+dspServiceNamespace = lens _dspServiceNamespace (\ s a -> s{_dspServiceNamespace = a}) --- | The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . dspResourceId :: Lens' DeleteScalingPolicy Text-dspResourceId = lens _dspResourceId (\ s a -> s{_dspResourceId = a});+dspResourceId = lens _dspResourceId (\ s a -> s{_dspResourceId = a}) --- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. dspScalableDimension :: Lens' DeleteScalingPolicy ScalableDimension-dspScalableDimension = lens _dspScalableDimension (\ s a -> s{_dspScalableDimension = a});+dspScalableDimension = lens _dspScalableDimension (\ s a -> s{_dspScalableDimension = a}) instance AWSRequest DeleteScalingPolicy where type Rs DeleteScalingPolicy =@@ -159,6 +159,6 @@ -- | -- | The response status code. dsprsResponseStatus :: Lens' DeleteScalingPolicyResponse Int-dsprsResponseStatus = lens _dsprsResponseStatus (\ s a -> s{_dsprsResponseStatus = a});+dsprsResponseStatus = lens _dsprsResponseStatus (\ s a -> s{_dsprsResponseStatus = a}) instance NFData DeleteScalingPolicyResponse where
gen/Network/AWS/ApplicationAutoScaling/DeleteScheduledAction.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.DeleteScheduledAction--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -59,13 +59,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dsaScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'dsaScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. -- -- * 'dsaServiceNamespace' - The namespace of the AWS service. 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/ . -- -- * 'dsaScheduledActionName' - The name of the scheduled action. ----- * 'dsaResourceId' - The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'dsaResourceId' - The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . deleteScheduledAction :: ServiceNamespace -- ^ 'dsaServiceNamespace' -> Text -- ^ 'dsaScheduledActionName'@@ -73,28 +73,28 @@ -> DeleteScheduledAction deleteScheduledAction pServiceNamespace_ pScheduledActionName_ pResourceId_ = DeleteScheduledAction'- { _dsaScalableDimension = Nothing- , _dsaServiceNamespace = pServiceNamespace_- , _dsaScheduledActionName = pScheduledActionName_- , _dsaResourceId = pResourceId_- }+ { _dsaScalableDimension = Nothing+ , _dsaServiceNamespace = pServiceNamespace_+ , _dsaScheduledActionName = pScheduledActionName_+ , _dsaResourceId = pResourceId_+ } --- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. dsaScalableDimension :: Lens' DeleteScheduledAction (Maybe ScalableDimension)-dsaScalableDimension = lens _dsaScalableDimension (\ s a -> s{_dsaScalableDimension = a});+dsaScalableDimension = lens _dsaScalableDimension (\ s a -> s{_dsaScalableDimension = a}) -- | The namespace of the AWS service. 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' DeleteScheduledAction ServiceNamespace-dsaServiceNamespace = lens _dsaServiceNamespace (\ s a -> s{_dsaServiceNamespace = a});+dsaServiceNamespace = lens _dsaServiceNamespace (\ s a -> s{_dsaServiceNamespace = a}) -- | The name of the scheduled action. dsaScheduledActionName :: Lens' DeleteScheduledAction Text-dsaScheduledActionName = lens _dsaScheduledActionName (\ s a -> s{_dsaScheduledActionName = a});+dsaScheduledActionName = lens _dsaScheduledActionName (\ s a -> s{_dsaScheduledActionName = a}) --- | The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . dsaResourceId :: Lens' DeleteScheduledAction Text-dsaResourceId = lens _dsaResourceId (\ s a -> s{_dsaResourceId = a});+dsaResourceId = lens _dsaResourceId (\ s a -> s{_dsaResourceId = a}) instance AWSRequest DeleteScheduledAction where type Rs DeleteScheduledAction =@@ -156,6 +156,6 @@ -- | -- | The response status code. delrsResponseStatus :: Lens' DeleteScheduledActionResponse Int-delrsResponseStatus = lens _delrsResponseStatus (\ s a -> s{_delrsResponseStatus = a});+delrsResponseStatus = lens _delrsResponseStatus (\ s a -> s{_delrsResponseStatus = a}) instance NFData DeleteScheduledActionResponse where
gen/Network/AWS/ApplicationAutoScaling/DeregisterScalableTarget.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.DeregisterScalableTarget--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -63,9 +63,9 @@ -- -- * 'derServiceNamespace' - The namespace of the AWS service. 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/ . ----- * 'derResourceId' - The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'derResourceId' - The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . ----- * 'derScalableDimension' - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'derScalableDimension' - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. deregisterScalableTarget :: ServiceNamespace -- ^ 'derServiceNamespace' -> Text -- ^ 'derResourceId'@@ -73,23 +73,23 @@ -> DeregisterScalableTarget deregisterScalableTarget pServiceNamespace_ pResourceId_ pScalableDimension_ = DeregisterScalableTarget'- { _derServiceNamespace = pServiceNamespace_- , _derResourceId = pResourceId_- , _derScalableDimension = pScalableDimension_- }+ { _derServiceNamespace = pServiceNamespace_+ , _derResourceId = pResourceId_+ , _derScalableDimension = pScalableDimension_+ } -- | The namespace of the AWS service. 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});+derServiceNamespace = lens _derServiceNamespace (\ s a -> s{_derServiceNamespace = a}) --- | The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . derResourceId :: Lens' DeregisterScalableTarget Text-derResourceId = lens _derResourceId (\ s a -> s{_derResourceId = a});+derResourceId = lens _derResourceId (\ s a -> s{_derResourceId = a}) --- | The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. derScalableDimension :: Lens' DeregisterScalableTarget ScalableDimension-derScalableDimension = lens _derScalableDimension (\ s a -> s{_derScalableDimension = a});+derScalableDimension = lens _derScalableDimension (\ s a -> s{_derScalableDimension = a}) instance AWSRequest DeregisterScalableTarget where type Rs DeregisterScalableTarget =@@ -149,7 +149,7 @@ -- | -- | The response status code. dstrsResponseStatus :: Lens' DeregisterScalableTargetResponse Int-dstrsResponseStatus = lens _dstrsResponseStatus (\ s a -> s{_dstrsResponseStatus = a});+dstrsResponseStatus = lens _dstrsResponseStatus (\ s a -> s{_dstrsResponseStatus = a}) instance NFData DeregisterScalableTargetResponse where
gen/Network/AWS/ApplicationAutoScaling/DescribeScalableTargets.hs view
@@ -12,13 +12,13 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.DescribeScalableTargets--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Provides descriptive information about the scalable targets in the specified namespace.+-- Gets information about the scalable targets in the specified namespace. -- -- -- You can filter the results using the @ResourceIds@ and @ScalableDimension@ parameters.@@ -70,13 +70,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dstResourceIds' - The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'dstResourceIds' - The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . ----- * 'dstScalableDimension' - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'dstScalableDimension' - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. -- -- * 'dstNextToken' - The token for the next set of results. ----- * 'dstMaxResults' - The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable.+-- * 'dstMaxResults' - The maximum number of scalable targets. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable. -- -- * 'dstServiceNamespace' - The namespace of the AWS service. 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/ . describeScalableTargets@@ -84,33 +84,33 @@ -> DescribeScalableTargets describeScalableTargets pServiceNamespace_ = DescribeScalableTargets'- { _dstResourceIds = Nothing- , _dstScalableDimension = Nothing- , _dstNextToken = Nothing- , _dstMaxResults = Nothing- , _dstServiceNamespace = pServiceNamespace_- }+ { _dstResourceIds = Nothing+ , _dstScalableDimension = Nothing+ , _dstNextToken = Nothing+ , _dstMaxResults = Nothing+ , _dstServiceNamespace = pServiceNamespace_+ } --- | The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . dstResourceIds :: Lens' DescribeScalableTargets [Text]-dstResourceIds = lens _dstResourceIds (\ s a -> s{_dstResourceIds = a}) . _Default . _Coerce;+dstResourceIds = lens _dstResourceIds (\ s a -> s{_dstResourceIds = a}) . _Default . _Coerce --- | The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. dstScalableDimension :: Lens' DescribeScalableTargets (Maybe ScalableDimension)-dstScalableDimension = lens _dstScalableDimension (\ s a -> s{_dstScalableDimension = a});+dstScalableDimension = lens _dstScalableDimension (\ s a -> s{_dstScalableDimension = a}) -- | The token for the next set of results. dstNextToken :: Lens' DescribeScalableTargets (Maybe Text)-dstNextToken = lens _dstNextToken (\ s a -> s{_dstNextToken = a});+dstNextToken = lens _dstNextToken (\ s a -> s{_dstNextToken = a}) --- | The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable.+-- | The maximum number of scalable targets. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable. dstMaxResults :: Lens' DescribeScalableTargets (Maybe Int)-dstMaxResults = lens _dstMaxResults (\ s a -> s{_dstMaxResults = a});+dstMaxResults = lens _dstMaxResults (\ s a -> s{_dstMaxResults = a}) -- | The namespace of the AWS service. 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});+dstServiceNamespace = lens _dstServiceNamespace (\ s a -> s{_dstServiceNamespace = a}) instance AWSPager DescribeScalableTargets where page rq rs@@ -175,7 +175,7 @@ -- -- * 'dstsrsNextToken' - The token required to get the next set of results. This value is @null@ if there are no more results to return. ----- * 'dstsrsScalableTargets' - The list of scalable targets that matches the request parameters.+-- * 'dstsrsScalableTargets' - The scalable targets that match the request parameters. -- -- * 'dstsrsResponseStatus' - -- | The response status code. describeScalableTargetsResponse@@ -183,22 +183,22 @@ -> DescribeScalableTargetsResponse describeScalableTargetsResponse pResponseStatus_ = DescribeScalableTargetsResponse'- { _dstsrsNextToken = Nothing- , _dstsrsScalableTargets = Nothing- , _dstsrsResponseStatus = pResponseStatus_- }+ { _dstsrsNextToken = Nothing+ , _dstsrsScalableTargets = Nothing+ , _dstsrsResponseStatus = pResponseStatus_+ } -- | The token required to get the next set of results. This value is @null@ if there are no more results to return. dstsrsNextToken :: Lens' DescribeScalableTargetsResponse (Maybe Text)-dstsrsNextToken = lens _dstsrsNextToken (\ s a -> s{_dstsrsNextToken = a});+dstsrsNextToken = lens _dstsrsNextToken (\ s a -> s{_dstsrsNextToken = a}) --- | The list of scalable targets that matches the request parameters.+-- | The scalable targets that match the request parameters. dstsrsScalableTargets :: Lens' DescribeScalableTargetsResponse [ScalableTarget]-dstsrsScalableTargets = lens _dstsrsScalableTargets (\ s a -> s{_dstsrsScalableTargets = a}) . _Default . _Coerce;+dstsrsScalableTargets = lens _dstsrsScalableTargets (\ s a -> s{_dstsrsScalableTargets = a}) . _Default . _Coerce -- | -- | The response status code. dstsrsResponseStatus :: Lens' DescribeScalableTargetsResponse Int-dstsrsResponseStatus = lens _dstsrsResponseStatus (\ s a -> s{_dstsrsResponseStatus = a});+dstsrsResponseStatus = lens _dstsrsResponseStatus (\ s a -> s{_dstsrsResponseStatus = a}) instance NFData DescribeScalableTargetsResponse where
gen/Network/AWS/ApplicationAutoScaling/DescribeScalingActivities.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.DescribeScalingActivities--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -70,13 +70,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'desScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'desScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. ----- * 'desResourceId' - The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'desResourceId' - The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . -- -- * 'desNextToken' - The token for the next set of results. ----- * 'desMaxResults' - The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable.+-- * 'desMaxResults' - The maximum number of scalable targets. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable. -- -- * 'desServiceNamespace' - The namespace of the AWS service. 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/ . describeScalingActivities@@ -84,33 +84,33 @@ -> DescribeScalingActivities describeScalingActivities pServiceNamespace_ = DescribeScalingActivities'- { _desScalableDimension = Nothing- , _desResourceId = Nothing- , _desNextToken = Nothing- , _desMaxResults = Nothing- , _desServiceNamespace = pServiceNamespace_- }+ { _desScalableDimension = Nothing+ , _desResourceId = Nothing+ , _desNextToken = Nothing+ , _desMaxResults = Nothing+ , _desServiceNamespace = pServiceNamespace_+ } --- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. desScalableDimension :: Lens' DescribeScalingActivities (Maybe ScalableDimension)-desScalableDimension = lens _desScalableDimension (\ s a -> s{_desScalableDimension = a});+desScalableDimension = lens _desScalableDimension (\ s a -> s{_desScalableDimension = a}) --- | The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . desResourceId :: Lens' DescribeScalingActivities (Maybe Text)-desResourceId = lens _desResourceId (\ s a -> s{_desResourceId = a});+desResourceId = lens _desResourceId (\ s a -> s{_desResourceId = a}) -- | The token for the next set of results. desNextToken :: Lens' DescribeScalingActivities (Maybe Text)-desNextToken = lens _desNextToken (\ s a -> s{_desNextToken = a});+desNextToken = lens _desNextToken (\ s a -> s{_desNextToken = a}) --- | The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable.+-- | The maximum number of scalable targets. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable. desMaxResults :: Lens' DescribeScalingActivities (Maybe Int)-desMaxResults = lens _desMaxResults (\ s a -> s{_desMaxResults = a});+desMaxResults = lens _desMaxResults (\ s a -> s{_desMaxResults = a}) -- | The namespace of the AWS service. 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/ . desServiceNamespace :: Lens' DescribeScalingActivities ServiceNamespace-desServiceNamespace = lens _desServiceNamespace (\ s a -> s{_desServiceNamespace = a});+desServiceNamespace = lens _desServiceNamespace (\ s a -> s{_desServiceNamespace = a}) instance AWSPager DescribeScalingActivities where page rq rs@@ -183,23 +183,23 @@ -> DescribeScalingActivitiesResponse describeScalingActivitiesResponse pResponseStatus_ = DescribeScalingActivitiesResponse'- { _dsasrsScalingActivities = Nothing- , _dsasrsNextToken = Nothing- , _dsasrsResponseStatus = pResponseStatus_- }+ { _dsasrsScalingActivities = Nothing+ , _dsasrsNextToken = Nothing+ , _dsasrsResponseStatus = pResponseStatus_+ } -- | A list of scaling activity objects. dsasrsScalingActivities :: Lens' DescribeScalingActivitiesResponse [ScalingActivity]-dsasrsScalingActivities = lens _dsasrsScalingActivities (\ s a -> s{_dsasrsScalingActivities = a}) . _Default . _Coerce;+dsasrsScalingActivities = lens _dsasrsScalingActivities (\ s a -> s{_dsasrsScalingActivities = a}) . _Default . _Coerce -- | The token required to get the next set of results. This value is @null@ if there are no more results to return. dsasrsNextToken :: Lens' DescribeScalingActivitiesResponse (Maybe Text)-dsasrsNextToken = lens _dsasrsNextToken (\ s a -> s{_dsasrsNextToken = a});+dsasrsNextToken = lens _dsasrsNextToken (\ s a -> s{_dsasrsNextToken = a}) -- | -- | The response status code. dsasrsResponseStatus :: Lens' DescribeScalingActivitiesResponse Int-dsasrsResponseStatus = lens _dsasrsResponseStatus (\ s a -> s{_dsasrsResponseStatus = a});+dsasrsResponseStatus = lens _dsasrsResponseStatus (\ s a -> s{_dsasrsResponseStatus = a}) instance NFData DescribeScalingActivitiesResponse where
gen/Network/AWS/ApplicationAutoScaling/DescribeScalingPolicies.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.DescribeScalingPolicies--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -74,13 +74,13 @@ -- -- * 'dPolicyNames' - The names of the scaling policies to describe. ----- * 'dScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'dScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. ----- * 'dResourceId' - The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'dResourceId' - The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . -- -- * 'dNextToken' - The token for the next set of results. ----- * 'dMaxResults' - The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable.+-- * 'dMaxResults' - The maximum number of scalable targets. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable. -- -- * 'dServiceNamespace' - The namespace of the AWS service. 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/ . describeScalingPolicies@@ -88,38 +88,38 @@ -> DescribeScalingPolicies describeScalingPolicies pServiceNamespace_ = DescribeScalingPolicies'- { _dPolicyNames = Nothing- , _dScalableDimension = Nothing- , _dResourceId = Nothing- , _dNextToken = Nothing- , _dMaxResults = Nothing- , _dServiceNamespace = pServiceNamespace_- }+ { _dPolicyNames = Nothing+ , _dScalableDimension = Nothing+ , _dResourceId = Nothing+ , _dNextToken = Nothing+ , _dMaxResults = Nothing+ , _dServiceNamespace = pServiceNamespace_+ } -- | The names of the scaling policies to describe. dPolicyNames :: Lens' DescribeScalingPolicies [Text]-dPolicyNames = lens _dPolicyNames (\ s a -> s{_dPolicyNames = a}) . _Default . _Coerce;+dPolicyNames = lens _dPolicyNames (\ s a -> s{_dPolicyNames = a}) . _Default . _Coerce --- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. dScalableDimension :: Lens' DescribeScalingPolicies (Maybe ScalableDimension)-dScalableDimension = lens _dScalableDimension (\ s a -> s{_dScalableDimension = a});+dScalableDimension = lens _dScalableDimension (\ s a -> s{_dScalableDimension = a}) --- | The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . dResourceId :: Lens' DescribeScalingPolicies (Maybe Text)-dResourceId = lens _dResourceId (\ s a -> s{_dResourceId = a});+dResourceId = lens _dResourceId (\ s a -> s{_dResourceId = a}) -- | The token for the next set of results. dNextToken :: Lens' DescribeScalingPolicies (Maybe Text)-dNextToken = lens _dNextToken (\ s a -> s{_dNextToken = a});+dNextToken = lens _dNextToken (\ s a -> s{_dNextToken = a}) --- | The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable.+-- | The maximum number of scalable targets. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable. dMaxResults :: Lens' DescribeScalingPolicies (Maybe Int)-dMaxResults = lens _dMaxResults (\ s a -> s{_dMaxResults = a});+dMaxResults = lens _dMaxResults (\ s a -> s{_dMaxResults = a}) -- | The namespace of the AWS service. 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});+dServiceNamespace = lens _dServiceNamespace (\ s a -> s{_dServiceNamespace = a}) instance AWSPager DescribeScalingPolicies where page rq rs@@ -193,22 +193,22 @@ -> DescribeScalingPoliciesResponse describeScalingPoliciesResponse pResponseStatus_ = DescribeScalingPoliciesResponse'- { _drsNextToken = Nothing- , _drsScalingPolicies = Nothing- , _drsResponseStatus = pResponseStatus_- }+ { _drsNextToken = Nothing+ , _drsScalingPolicies = Nothing+ , _drsResponseStatus = pResponseStatus_+ } -- | The token required to get the next set of results. This value is @null@ if there are no more results to return. drsNextToken :: Lens' DescribeScalingPoliciesResponse (Maybe Text)-drsNextToken = lens _drsNextToken (\ s a -> s{_drsNextToken = a});+drsNextToken = lens _drsNextToken (\ s a -> s{_drsNextToken = a}) -- | Information about the scaling policies. drsScalingPolicies :: Lens' DescribeScalingPoliciesResponse [ScalingPolicy]-drsScalingPolicies = lens _drsScalingPolicies (\ s a -> s{_drsScalingPolicies = a}) . _Default . _Coerce;+drsScalingPolicies = lens _drsScalingPolicies (\ s a -> s{_drsScalingPolicies = a}) . _Default . _Coerce -- | -- | The response status code. drsResponseStatus :: Lens' DescribeScalingPoliciesResponse Int-drsResponseStatus = lens _drsResponseStatus (\ s a -> s{_drsResponseStatus = a});+drsResponseStatus = lens _drsResponseStatus (\ s a -> s{_drsResponseStatus = a}) instance NFData DescribeScalingPoliciesResponse where
gen/Network/AWS/ApplicationAutoScaling/DescribeScheduledActions.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.DescribeScheduledActions--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -69,15 +69,15 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dsasScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'dsasScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. ----- * 'dsasResourceId' - The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'dsasResourceId' - The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . -- -- * 'dsasNextToken' - The token for the next set of results. -- -- * 'dsasScheduledActionNames' - The names of the scheduled actions to describe. ----- * 'dsasMaxResults' - The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable.+-- * 'dsasMaxResults' - The maximum number of scheduled action results. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable. -- -- * 'dsasServiceNamespace' - The namespace of the AWS service. 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/ . describeScheduledActions@@ -85,38 +85,38 @@ -> DescribeScheduledActions describeScheduledActions pServiceNamespace_ = DescribeScheduledActions'- { _dsasScalableDimension = Nothing- , _dsasResourceId = Nothing- , _dsasNextToken = Nothing- , _dsasScheduledActionNames = Nothing- , _dsasMaxResults = Nothing- , _dsasServiceNamespace = pServiceNamespace_- }+ { _dsasScalableDimension = Nothing+ , _dsasResourceId = Nothing+ , _dsasNextToken = Nothing+ , _dsasScheduledActionNames = Nothing+ , _dsasMaxResults = Nothing+ , _dsasServiceNamespace = pServiceNamespace_+ } --- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. dsasScalableDimension :: Lens' DescribeScheduledActions (Maybe ScalableDimension)-dsasScalableDimension = lens _dsasScalableDimension (\ s a -> s{_dsasScalableDimension = a});+dsasScalableDimension = lens _dsasScalableDimension (\ s a -> s{_dsasScalableDimension = a}) --- | The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . dsasResourceId :: Lens' DescribeScheduledActions (Maybe Text)-dsasResourceId = lens _dsasResourceId (\ s a -> s{_dsasResourceId = a});+dsasResourceId = lens _dsasResourceId (\ s a -> s{_dsasResourceId = a}) -- | The token for the next set of results. dsasNextToken :: Lens' DescribeScheduledActions (Maybe Text)-dsasNextToken = lens _dsasNextToken (\ s a -> s{_dsasNextToken = a});+dsasNextToken = lens _dsasNextToken (\ s a -> s{_dsasNextToken = a}) -- | The names of the scheduled actions to describe. dsasScheduledActionNames :: Lens' DescribeScheduledActions [Text]-dsasScheduledActionNames = lens _dsasScheduledActionNames (\ s a -> s{_dsasScheduledActionNames = a}) . _Default . _Coerce;+dsasScheduledActionNames = lens _dsasScheduledActionNames (\ s a -> s{_dsasScheduledActionNames = a}) . _Default . _Coerce --- | The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable.+-- | The maximum number of scheduled action results. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to @MaxResults@ results at a time, along with a @NextToken@ value. To get the next set of results, include the @NextToken@ value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a @NextToken@ value, if applicable. dsasMaxResults :: Lens' DescribeScheduledActions (Maybe Int)-dsasMaxResults = lens _dsasMaxResults (\ s a -> s{_dsasMaxResults = a});+dsasMaxResults = lens _dsasMaxResults (\ s a -> s{_dsasMaxResults = a}) -- | The namespace of the AWS service. 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/ . dsasServiceNamespace :: Lens' DescribeScheduledActions ServiceNamespace-dsasServiceNamespace = lens _dsasServiceNamespace (\ s a -> s{_dsasServiceNamespace = a});+dsasServiceNamespace = lens _dsasServiceNamespace (\ s a -> s{_dsasServiceNamespace = a}) instance AWSRequest DescribeScheduledActions where type Rs DescribeScheduledActions =@@ -184,23 +184,23 @@ -> DescribeScheduledActionsResponse describeScheduledActionsResponse pResponseStatus_ = DescribeScheduledActionsResponse'- { _dsarsNextToken = Nothing- , _dsarsScheduledActions = Nothing- , _dsarsResponseStatus = pResponseStatus_- }+ { _dsarsNextToken = Nothing+ , _dsarsScheduledActions = Nothing+ , _dsarsResponseStatus = pResponseStatus_+ } -- | The token required to get the next set of results. This value is @null@ if there are no more results to return. dsarsNextToken :: Lens' DescribeScheduledActionsResponse (Maybe Text)-dsarsNextToken = lens _dsarsNextToken (\ s a -> s{_dsarsNextToken = a});+dsarsNextToken = lens _dsarsNextToken (\ s a -> s{_dsarsNextToken = a}) -- | Information about the scheduled actions. dsarsScheduledActions :: Lens' DescribeScheduledActionsResponse [ScheduledAction]-dsarsScheduledActions = lens _dsarsScheduledActions (\ s a -> s{_dsarsScheduledActions = a}) . _Default . _Coerce;+dsarsScheduledActions = lens _dsarsScheduledActions (\ s a -> s{_dsarsScheduledActions = a}) . _Default . _Coerce -- | -- | The response status code. dsarsResponseStatus :: Lens' DescribeScheduledActionsResponse Int-dsarsResponseStatus = lens _dsarsResponseStatus (\ s a -> s{_dsarsResponseStatus = a});+dsarsResponseStatus = lens _dsarsResponseStatus (\ s a -> s{_dsarsResponseStatus = a}) instance NFData DescribeScheduledActionsResponse where
gen/Network/AWS/ApplicationAutoScaling/PutScalingPolicy.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.PutScalingPolicy--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -21,7 +21,7 @@ -- Creates or updates a policy for an Application Auto Scaling scalable target. -- ----- Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scaling policy applies to the scalable target identified by those three attributes. You cannot create a scaling policy without first registering a scalable target using 'RegisterScalableTarget' .+-- Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scaling policy applies to the scalable target identified by those three attributes. You cannot create a scaling policy until you register the scalable target using 'RegisterScalableTarget' . -- -- To update a policy, specify its policy name and the parameters that you want to change. Any parameters that you don't specify are not changed by this update request. --@@ -73,9 +73,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pspPolicyType' - The policy type. If you are creating a new policy, this parameter is required. If you are updating a policy, this parameter is not required. For DynamoDB, only @TargetTrackingScaling@ is supported. For any other service, only @StepScaling@ is supported.+-- * 'pspPolicyType' - The policy type. This parameter is required if you are creating a policy. For DynamoDB, only @TargetTrackingScaling@ is supported. For Amazon ECS, Spot Fleet, and Amazon RDS, both @StepScaling@ and @TargetTrackingScaling@ are supported. For any other service, only @StepScaling@ is supported. ----- * 'pspTargetTrackingScalingPolicyConfiguration' - A target tracking policy. This parameter is required if you are creating a new policy and the policy type is @TargetTrackingScaling@ .+-- * 'pspTargetTrackingScalingPolicyConfiguration' - A target tracking policy. This parameter is required if you are creating a policy and the policy type is @TargetTrackingScaling@ . -- -- * 'pspStepScalingPolicyConfiguration' - A step scaling policy. This parameter is required if you are creating a policy and the policy type is @StepScaling@ . --@@ -83,9 +83,9 @@ -- -- * 'pspServiceNamespace' - The namespace of the AWS service. 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/ . ----- * 'pspResourceId' - The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'pspResourceId' - The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . ----- * 'pspScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'pspScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. putScalingPolicy :: Text -- ^ 'pspPolicyName' -> ServiceNamespace -- ^ 'pspServiceNamespace'@@ -94,43 +94,43 @@ -> PutScalingPolicy putScalingPolicy pPolicyName_ pServiceNamespace_ pResourceId_ pScalableDimension_ = PutScalingPolicy'- { _pspPolicyType = Nothing- , _pspTargetTrackingScalingPolicyConfiguration = Nothing- , _pspStepScalingPolicyConfiguration = Nothing- , _pspPolicyName = pPolicyName_- , _pspServiceNamespace = pServiceNamespace_- , _pspResourceId = pResourceId_- , _pspScalableDimension = pScalableDimension_- }+ { _pspPolicyType = Nothing+ , _pspTargetTrackingScalingPolicyConfiguration = Nothing+ , _pspStepScalingPolicyConfiguration = Nothing+ , _pspPolicyName = pPolicyName_+ , _pspServiceNamespace = pServiceNamespace_+ , _pspResourceId = pResourceId_+ , _pspScalableDimension = pScalableDimension_+ } --- | The policy type. If you are creating a new policy, this parameter is required. If you are updating a policy, this parameter is not required. For DynamoDB, only @TargetTrackingScaling@ is supported. For any other service, only @StepScaling@ is supported.+-- | The policy type. This parameter is required if you are creating a policy. For DynamoDB, only @TargetTrackingScaling@ is supported. For Amazon ECS, Spot Fleet, and Amazon RDS, both @StepScaling@ and @TargetTrackingScaling@ are supported. For any other service, only @StepScaling@ is supported. pspPolicyType :: Lens' PutScalingPolicy (Maybe PolicyType)-pspPolicyType = lens _pspPolicyType (\ s a -> s{_pspPolicyType = a});+pspPolicyType = lens _pspPolicyType (\ s a -> s{_pspPolicyType = a}) --- | A target tracking policy. This parameter is required if you are creating a new policy and the policy type is @TargetTrackingScaling@ .+-- | A target tracking policy. This parameter is required if you are creating a policy and the policy type is @TargetTrackingScaling@ . pspTargetTrackingScalingPolicyConfiguration :: Lens' PutScalingPolicy (Maybe TargetTrackingScalingPolicyConfiguration)-pspTargetTrackingScalingPolicyConfiguration = lens _pspTargetTrackingScalingPolicyConfiguration (\ s a -> s{_pspTargetTrackingScalingPolicyConfiguration = a});+pspTargetTrackingScalingPolicyConfiguration = lens _pspTargetTrackingScalingPolicyConfiguration (\ s a -> s{_pspTargetTrackingScalingPolicyConfiguration = a}) -- | A step scaling policy. This parameter is required if you are creating a policy and the policy type is @StepScaling@ . pspStepScalingPolicyConfiguration :: Lens' PutScalingPolicy (Maybe StepScalingPolicyConfiguration)-pspStepScalingPolicyConfiguration = lens _pspStepScalingPolicyConfiguration (\ s a -> s{_pspStepScalingPolicyConfiguration = a});+pspStepScalingPolicyConfiguration = lens _pspStepScalingPolicyConfiguration (\ s a -> s{_pspStepScalingPolicyConfiguration = a}) -- | The name of the scaling policy. pspPolicyName :: Lens' PutScalingPolicy Text-pspPolicyName = lens _pspPolicyName (\ s a -> s{_pspPolicyName = a});+pspPolicyName = lens _pspPolicyName (\ s a -> s{_pspPolicyName = a}) -- | The namespace of the AWS service. 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});+pspServiceNamespace = lens _pspServiceNamespace (\ s a -> s{_pspServiceNamespace = a}) --- | The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . pspResourceId :: Lens' PutScalingPolicy Text-pspResourceId = lens _pspResourceId (\ s a -> s{_pspResourceId = a});+pspResourceId = lens _pspResourceId (\ s a -> s{_pspResourceId = a}) --- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. pspScalableDimension :: Lens' PutScalingPolicy ScalableDimension-pspScalableDimension = lens _pspScalableDimension (\ s a -> s{_pspScalableDimension = a});+pspScalableDimension = lens _pspScalableDimension (\ s a -> s{_pspScalableDimension = a}) instance AWSRequest PutScalingPolicy where type Rs PutScalingPolicy = PutScalingPolicyResponse@@ -199,22 +199,22 @@ -> PutScalingPolicyResponse putScalingPolicyResponse pResponseStatus_ pPolicyARN_ = PutScalingPolicyResponse'- { _psprsAlarms = Nothing- , _psprsResponseStatus = pResponseStatus_- , _psprsPolicyARN = pPolicyARN_- }+ { _psprsAlarms = Nothing+ , _psprsResponseStatus = pResponseStatus_+ , _psprsPolicyARN = pPolicyARN_+ } -- | The CloudWatch alarms created for the target tracking policy. psprsAlarms :: Lens' PutScalingPolicyResponse [Alarm]-psprsAlarms = lens _psprsAlarms (\ s a -> s{_psprsAlarms = a}) . _Default . _Coerce;+psprsAlarms = lens _psprsAlarms (\ s a -> s{_psprsAlarms = a}) . _Default . _Coerce -- | -- | The response status code. psprsResponseStatus :: Lens' PutScalingPolicyResponse Int-psprsResponseStatus = lens _psprsResponseStatus (\ s a -> s{_psprsResponseStatus = a});+psprsResponseStatus = lens _psprsResponseStatus (\ s a -> s{_psprsResponseStatus = a}) -- | The Amazon Resource Name (ARN) of the resulting scaling policy. psprsPolicyARN :: Lens' PutScalingPolicyResponse Text-psprsPolicyARN = lens _psprsPolicyARN (\ s a -> s{_psprsPolicyARN = a});+psprsPolicyARN = lens _psprsPolicyARN (\ s a -> s{_psprsPolicyARN = a}) instance NFData PutScalingPolicyResponse where
gen/Network/AWS/ApplicationAutoScaling/PutScheduledAction.hs view
@@ -12,7 +12,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.PutScheduledAction--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -21,7 +21,7 @@ -- Creates or updates a scheduled action for an Application Auto Scaling scalable target. -- ----- Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scheduled action applies to the scalable target identified by those three attributes. You cannot create a scheduled action without first registering a scalable target using 'RegisterScalableTarget' .+-- Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scheduled action applies to the scalable target identified by those three attributes. You cannot create a scheduled action until you register the scalable target using 'RegisterScalableTarget' . -- -- To update an action, specify its name and the parameters that you want to change. If you don't specify start and end times, the old values are deleted. Any other parameters that you don't specify are not changed by this update request. --@@ -73,7 +73,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'psaScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'psaScalableDimension' - The scalable dimension. This parameter is required if you are creating a scheduled action. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. -- -- * 'psaStartTime' - The date and time for the scheduled action to start. --@@ -87,7 +87,7 @@ -- -- * 'psaScheduledActionName' - The name of the scheduled action. ----- * 'psaResourceId' - The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'psaResourceId' - The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . putScheduledAction :: ServiceNamespace -- ^ 'psaServiceNamespace' -> Text -- ^ 'psaScheduledActionName'@@ -95,48 +95,48 @@ -> PutScheduledAction putScheduledAction pServiceNamespace_ pScheduledActionName_ pResourceId_ = PutScheduledAction'- { _psaScalableDimension = Nothing- , _psaStartTime = Nothing- , _psaSchedule = Nothing- , _psaEndTime = Nothing- , _psaScalableTargetAction = Nothing- , _psaServiceNamespace = pServiceNamespace_- , _psaScheduledActionName = pScheduledActionName_- , _psaResourceId = pResourceId_- }+ { _psaScalableDimension = Nothing+ , _psaStartTime = Nothing+ , _psaSchedule = Nothing+ , _psaEndTime = Nothing+ , _psaScalableTargetAction = Nothing+ , _psaServiceNamespace = pServiceNamespace_+ , _psaScheduledActionName = pScheduledActionName_+ , _psaResourceId = pResourceId_+ } --- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension. This parameter is required if you are creating a scheduled action. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. psaScalableDimension :: Lens' PutScheduledAction (Maybe ScalableDimension)-psaScalableDimension = lens _psaScalableDimension (\ s a -> s{_psaScalableDimension = a});+psaScalableDimension = lens _psaScalableDimension (\ s a -> s{_psaScalableDimension = a}) -- | The date and time for the scheduled action to start. psaStartTime :: Lens' PutScheduledAction (Maybe UTCTime)-psaStartTime = lens _psaStartTime (\ s a -> s{_psaStartTime = a}) . mapping _Time;+psaStartTime = lens _psaStartTime (\ s a -> s{_psaStartTime = a}) . mapping _Time -- | The schedule for this action. The following formats are supported: * At expressions - @at(/yyyy/ -/mm/ -/dd/ T/hh/ :/mm/ :/ss/ )@ * Rate expressions - @rate(/value/ /unit/ )@ * Cron expressions - @cron(/fields/ )@ At expressions are useful for one-time schedules. Specify the time, in UTC. For rate expressions, /value/ is a positive integer and /unit/ is @minute@ | @minutes@ | @hour@ | @hours@ | @day@ | @days@ . For more information about cron expressions, see <https://en.wikipedia.org/wiki/Cron Cron> . psaSchedule :: Lens' PutScheduledAction (Maybe Text)-psaSchedule = lens _psaSchedule (\ s a -> s{_psaSchedule = a});+psaSchedule = lens _psaSchedule (\ s a -> s{_psaSchedule = a}) -- | The date and time for the scheduled action to end. psaEndTime :: Lens' PutScheduledAction (Maybe UTCTime)-psaEndTime = lens _psaEndTime (\ s a -> s{_psaEndTime = a}) . mapping _Time;+psaEndTime = lens _psaEndTime (\ s a -> s{_psaEndTime = a}) . mapping _Time -- | The new minimum and maximum capacity. You can set both values or just one. During the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. If the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity. psaScalableTargetAction :: Lens' PutScheduledAction (Maybe ScalableTargetAction)-psaScalableTargetAction = lens _psaScalableTargetAction (\ s a -> s{_psaScalableTargetAction = a});+psaScalableTargetAction = lens _psaScalableTargetAction (\ s a -> s{_psaScalableTargetAction = a}) -- | The namespace of the AWS service. 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/ . psaServiceNamespace :: Lens' PutScheduledAction ServiceNamespace-psaServiceNamespace = lens _psaServiceNamespace (\ s a -> s{_psaServiceNamespace = a});+psaServiceNamespace = lens _psaServiceNamespace (\ s a -> s{_psaServiceNamespace = a}) -- | The name of the scheduled action. psaScheduledActionName :: Lens' PutScheduledAction Text-psaScheduledActionName = lens _psaScheduledActionName (\ s a -> s{_psaScheduledActionName = a});+psaScheduledActionName = lens _psaScheduledActionName (\ s a -> s{_psaScheduledActionName = a}) --- | The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . psaResourceId :: Lens' PutScheduledAction Text-psaResourceId = lens _psaResourceId (\ s a -> s{_psaResourceId = a});+psaResourceId = lens _psaResourceId (\ s a -> s{_psaResourceId = a}) instance AWSRequest PutScheduledAction where type Rs PutScheduledAction =@@ -202,6 +202,6 @@ -- | -- | The response status code. psarsResponseStatus :: Lens' PutScheduledActionResponse Int-psarsResponseStatus = lens _psarsResponseStatus (\ s a -> s{_psarsResponseStatus = a});+psarsResponseStatus = lens _psarsResponseStatus (\ s a -> s{_psarsResponseStatus = a}) instance NFData PutScheduledActionResponse where
gen/Network/AWS/ApplicationAutoScaling/RegisterScalableTarget.hs view
@@ -12,16 +12,16 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.RegisterScalableTarget--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Registers or updates a scalable target. A scalable target is a resource that Application Auto Scaling can scale out or scale in. After you have registered a scalable target, you can use this operation to update the minimum and maximum values for your scalable dimension.+-- Registers or updates a scalable target. A scalable target is a resource that Application Auto Scaling can scale out or scale in. After you have registered a scalable target, you can use this operation to update the minimum and maximum values for its scalable dimension. -- ----- After you register a scalable target, you can create and apply scaling policies using 'PutScalingPolicy' . You can view the scaling policies for a service namespace using 'DescribeScalableTargets' . If you are no longer using a scalable target, you can deregister it using 'DeregisterScalableTarget' .+-- After you register a scalable target, you can create and apply scaling policies using 'PutScalingPolicy' . You can view the scaling policies for a service namespace using 'DescribeScalableTargets' . If you no longer need a scalable target, you can deregister it using 'DeregisterScalableTarget' . -- module Network.AWS.ApplicationAutoScaling.RegisterScalableTarget (@@ -65,17 +65,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rstMaxCapacity' - The maximum value to scale to in response to a scale out event. This parameter is required if you are registering a scalable target and optional if you are updating one.+-- * 'rstMaxCapacity' - The maximum value to scale to in response to a scale out event. This parameter is required if you are registering a scalable target. ----- * 'rstMinCapacity' - The minimum value to scale to in response to a scale in event. This parameter is required if you are registering a scalable target and optional if you are updating one.+-- * 'rstMinCapacity' - The minimum value to scale to in response to a scale in event. This parameter is required if you are registering a scalable target. ----- * 'rstRoleARN' - The ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf. This parameter is required when you register a scalable target and optional when you update one.+-- * 'rstRoleARN' - Application Auto Scaling creates a service-linked role that grants it permissions to modify the scalable target on your behalf. For more information, see <http://docs.aws.amazon.com/ApplicationAutoScaling/latest/APIReference/application-autoscaling-service-linked-roles.html Service-Linked Roles for Application Auto Scaling> . For resources that are not supported using a service-linked role, this parameter is required and must specify the ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf. -- -- * 'rstServiceNamespace' - The namespace of the AWS service. 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/ . ----- * 'rstResourceId' - The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'rstResourceId' - The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . ----- * 'rstScalableDimension' - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'rstScalableDimension' - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. registerScalableTarget :: ServiceNamespace -- ^ 'rstServiceNamespace' -> Text -- ^ 'rstResourceId'@@ -83,38 +83,38 @@ -> RegisterScalableTarget registerScalableTarget pServiceNamespace_ pResourceId_ pScalableDimension_ = RegisterScalableTarget'- { _rstMaxCapacity = Nothing- , _rstMinCapacity = Nothing- , _rstRoleARN = Nothing- , _rstServiceNamespace = pServiceNamespace_- , _rstResourceId = pResourceId_- , _rstScalableDimension = pScalableDimension_- }+ { _rstMaxCapacity = Nothing+ , _rstMinCapacity = Nothing+ , _rstRoleARN = Nothing+ , _rstServiceNamespace = pServiceNamespace_+ , _rstResourceId = pResourceId_+ , _rstScalableDimension = pScalableDimension_+ } --- | The maximum value to scale to in response to a scale out event. This parameter is required if you are registering a scalable target and optional if you are updating one.+-- | The maximum value to scale to in response to a scale out event. This parameter is required if you are registering a scalable target. rstMaxCapacity :: Lens' RegisterScalableTarget (Maybe Int)-rstMaxCapacity = lens _rstMaxCapacity (\ s a -> s{_rstMaxCapacity = a});+rstMaxCapacity = lens _rstMaxCapacity (\ s a -> s{_rstMaxCapacity = a}) --- | The minimum value to scale to in response to a scale in event. This parameter is required if you are registering a scalable target and optional if you are updating one.+-- | The minimum value to scale to in response to a scale in event. This parameter is required if you are registering a scalable target. rstMinCapacity :: Lens' RegisterScalableTarget (Maybe Int)-rstMinCapacity = lens _rstMinCapacity (\ s a -> s{_rstMinCapacity = a});+rstMinCapacity = lens _rstMinCapacity (\ s a -> s{_rstMinCapacity = a}) --- | The ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf. This parameter is required when you register a scalable target and optional when you update one.+-- | Application Auto Scaling creates a service-linked role that grants it permissions to modify the scalable target on your behalf. For more information, see <http://docs.aws.amazon.com/ApplicationAutoScaling/latest/APIReference/application-autoscaling-service-linked-roles.html Service-Linked Roles for Application Auto Scaling> . For resources that are not supported using a service-linked role, this parameter is required and must specify the ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf. rstRoleARN :: Lens' RegisterScalableTarget (Maybe Text)-rstRoleARN = lens _rstRoleARN (\ s a -> s{_rstRoleARN = a});+rstRoleARN = lens _rstRoleARN (\ s a -> s{_rstRoleARN = a}) -- | The namespace of the AWS service. 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});+rstServiceNamespace = lens _rstServiceNamespace (\ s a -> s{_rstServiceNamespace = a}) --- | The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . rstResourceId :: Lens' RegisterScalableTarget Text-rstResourceId = lens _rstResourceId (\ s a -> s{_rstResourceId = a});+rstResourceId = lens _rstResourceId (\ s a -> s{_rstResourceId = a}) --- | The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. rstScalableDimension :: Lens' RegisterScalableTarget ScalableDimension-rstScalableDimension = lens _rstScalableDimension (\ s a -> s{_rstScalableDimension = a});+rstScalableDimension = lens _rstScalableDimension (\ s a -> s{_rstScalableDimension = a}) instance AWSRequest RegisterScalableTarget where type Rs RegisterScalableTarget =@@ -177,6 +177,6 @@ -- | -- | The response status code. rstrsResponseStatus :: Lens' RegisterScalableTargetResponse Int-rstrsResponseStatus = lens _rstrsResponseStatus (\ s a -> s{_rstrsResponseStatus = a});+rstrsResponseStatus = lens _rstrsResponseStatus (\ s a -> s{_rstrsResponseStatus = a}) instance NFData RegisterScalableTargetResponse where
gen/Network/AWS/ApplicationAutoScaling/Types.hs view
@@ -4,7 +4,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.Types--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -172,24 +172,24 @@ applicationAutoScaling :: Service applicationAutoScaling = Service- { _svcAbbrev = "ApplicationAutoScaling"- , _svcSigner = v4- , _svcPrefix = "autoscaling"- , _svcVersion = "2016-02-06"- , _svcEndpoint = defaultEndpoint applicationAutoScaling- , _svcTimeout = Just 70- , _svcCheck = statusSuccess- , _svcError = parseJSONError "ApplicationAutoScaling"- , _svcRetry = retry- }+ { _svcAbbrev = "ApplicationAutoScaling"+ , _svcSigner = v4+ , _svcPrefix = "autoscaling"+ , _svcVersion = "2016-02-06"+ , _svcEndpoint = defaultEndpoint applicationAutoScaling+ , _svcTimeout = Just 70+ , _svcCheck = statusSuccess+ , _svcError = parseJSONError "ApplicationAutoScaling"+ , _svcRetry = retry+ } where retry = Exponential- { _retryBase = 5.0e-2- , _retryGrowth = 2- , _retryAttempts = 5- , _retryCheck = check- }+ { _retryBase = 5.0e-2+ , _retryGrowth = 2+ , _retryAttempts = 5+ , _retryCheck = check+ } check e | has (hasCode "ThrottledException" . hasStatus 400) e = Just "throttled_exception"@@ -198,6 +198,8 @@ Just "throttling_exception" | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling" | has (hasStatus 504) e = Just "gateway_timeout"+ | has (hasCode "RequestThrottledException" . hasStatus 400) e =+ Just "request_throttled_exception" | has (hasStatus 502) e = Just "bad_gateway" | has (hasStatus 503) e = Just "service_unavailable" | has (hasStatus 500) e = Just "general_server_error"@@ -213,7 +215,7 @@ _MatchServiceError applicationAutoScaling "ValidationException" --- | Failed access to resources caused an exception. This exception 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 permission 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 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 permission to call the CloudWatch <http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html DescribeAlarms> on your behalf. -- -- _FailedResourceAccessException :: AsError a => Getting (First ServiceError) a ServiceError@@ -245,7 +247,7 @@ _MatchServiceError applicationAutoScaling "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 operation that 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 operation that deletes or deregisters a resource, this exception is thrown if the resource cannot be found. -- -- _ObjectNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError@@ -253,7 +255,7 @@ _MatchServiceError applicationAutoScaling "ObjectNotFoundException" --- | Your account exceeded a limit. This exception is thrown when a per-account resource limit is exceeded. For more information, see <http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_as-app Application Auto Scaling Limits> .+-- | A per-account resource limit is exceeded. For more information, see <http://docs.aws.amazon.com/ApplicationAutoScaling/latest/userguide/application-auto-scaling-limits.html Application Auto Scaling Limits> . -- -- _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
gen/Network/AWS/ApplicationAutoScaling/Types/Product.hs view
@@ -9,7 +9,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.Types.Product--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -49,11 +49,11 @@ -- | The name of the alarm. aAlarmName :: Lens' Alarm Text-aAlarmName = lens _aAlarmName (\ s a -> s{_aAlarmName = a});+aAlarmName = lens _aAlarmName (\ s a -> s{_aAlarmName = a}) -- | The Amazon Resource Name (ARN) of the alarm. aAlarmARN :: Lens' Alarm Text-aAlarmARN = lens _aAlarmARN (\ s a -> s{_aAlarmARN = a});+aAlarmARN = lens _aAlarmARN (\ s a -> s{_aAlarmARN = a}) instance FromJSON Alarm where parseJSON@@ -99,33 +99,33 @@ -> CustomizedMetricSpecification customizedMetricSpecification pMetricName_ pNamespace_ pStatistic_ = CustomizedMetricSpecification'- { _cmsDimensions = Nothing- , _cmsUnit = Nothing- , _cmsMetricName = pMetricName_- , _cmsNamespace = pNamespace_- , _cmsStatistic = pStatistic_- }+ { _cmsDimensions = Nothing+ , _cmsUnit = Nothing+ , _cmsMetricName = pMetricName_+ , _cmsNamespace = pNamespace_+ , _cmsStatistic = pStatistic_+ } -- | The dimensions of the metric. cmsDimensions :: Lens' CustomizedMetricSpecification [MetricDimension]-cmsDimensions = lens _cmsDimensions (\ s a -> s{_cmsDimensions = a}) . _Default . _Coerce;+cmsDimensions = lens _cmsDimensions (\ s a -> s{_cmsDimensions = a}) . _Default . _Coerce -- | The unit of the metric. cmsUnit :: Lens' CustomizedMetricSpecification (Maybe Text)-cmsUnit = lens _cmsUnit (\ s a -> s{_cmsUnit = a});+cmsUnit = lens _cmsUnit (\ s a -> s{_cmsUnit = a}) -- | The name of the metric. cmsMetricName :: Lens' CustomizedMetricSpecification Text-cmsMetricName = lens _cmsMetricName (\ s a -> s{_cmsMetricName = a});+cmsMetricName = lens _cmsMetricName (\ s a -> s{_cmsMetricName = a}) -- | The namespace of the metric. cmsNamespace :: Lens' CustomizedMetricSpecification Text-cmsNamespace = lens _cmsNamespace (\ s a -> s{_cmsNamespace = a});+cmsNamespace = lens _cmsNamespace (\ s a -> s{_cmsNamespace = a}) -- | The statistic of the metric. cmsStatistic :: Lens' CustomizedMetricSpecification MetricStatistic-cmsStatistic = lens _cmsStatistic (\ s a -> s{_cmsStatistic = a});+cmsStatistic = lens _cmsStatistic (\ s a -> s{_cmsStatistic = a}) instance FromJSON CustomizedMetricSpecification where parseJSON@@ -179,11 +179,11 @@ -- | The name of the dimension. mdName :: Lens' MetricDimension Text-mdName = lens _mdName (\ s a -> s{_mdName = a});+mdName = lens _mdName (\ s a -> s{_mdName = a}) -- | The value of the dimension. mdValue :: Lens' MetricDimension Text-mdValue = lens _mdValue (\ s a -> s{_mdValue = a});+mdValue = lens _mdValue (\ s a -> s{_mdValue = a}) instance FromJSON MetricDimension where parseJSON@@ -218,26 +218,26 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pmsResourceLabel' - Reserved for future use.+-- * 'pmsResourceLabel' - Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is @ALBRequestCountPerTarget@ and there is a target group attached to the Spot fleet request or ECS service. The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>, where: * app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN * targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN. ----- * 'pmsPredefinedMetricType' - The metric type.+-- * 'pmsPredefinedMetricType' - The metric type. The @ALBRequestCountPerTarget@ metric type applies only to Spot fleet requests and ECS services. predefinedMetricSpecification :: MetricType -- ^ 'pmsPredefinedMetricType' -> PredefinedMetricSpecification predefinedMetricSpecification pPredefinedMetricType_ = PredefinedMetricSpecification'- { _pmsResourceLabel = Nothing- , _pmsPredefinedMetricType = pPredefinedMetricType_- }+ { _pmsResourceLabel = Nothing+ , _pmsPredefinedMetricType = pPredefinedMetricType_+ } --- | Reserved for future use.+-- | Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is @ALBRequestCountPerTarget@ and there is a target group attached to the Spot fleet request or ECS service. The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>, where: * app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN * targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN. pmsResourceLabel :: Lens' PredefinedMetricSpecification (Maybe Text)-pmsResourceLabel = lens _pmsResourceLabel (\ s a -> s{_pmsResourceLabel = a});+pmsResourceLabel = lens _pmsResourceLabel (\ s a -> s{_pmsResourceLabel = a}) --- | The metric type.+-- | The metric type. The @ALBRequestCountPerTarget@ metric type applies only to Spot fleet requests and ECS services. pmsPredefinedMetricType :: Lens' PredefinedMetricSpecification MetricType-pmsPredefinedMetricType = lens _pmsPredefinedMetricType (\ s a -> s{_pmsPredefinedMetricType = a});+pmsPredefinedMetricType = lens _pmsPredefinedMetricType (\ s a -> s{_pmsPredefinedMetricType = a}) instance FromJSON PredefinedMetricSpecification where parseJSON@@ -282,9 +282,9 @@ -- -- * 'stServiceNamespace' - The namespace of the AWS service. 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/ . ----- * 'stResourceId' - The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'stResourceId' - The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . ----- * 'stScalableDimension' - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'stScalableDimension' - The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. -- -- * 'stMinCapacity' - The minimum value to scale to in response to a scale in event. --@@ -304,43 +304,43 @@ -> ScalableTarget scalableTarget pServiceNamespace_ pResourceId_ pScalableDimension_ pMinCapacity_ pMaxCapacity_ pRoleARN_ pCreationTime_ = ScalableTarget'- { _stServiceNamespace = pServiceNamespace_- , _stResourceId = pResourceId_- , _stScalableDimension = pScalableDimension_- , _stMinCapacity = pMinCapacity_- , _stMaxCapacity = pMaxCapacity_- , _stRoleARN = pRoleARN_- , _stCreationTime = _Time # pCreationTime_- }+ { _stServiceNamespace = pServiceNamespace_+ , _stResourceId = pResourceId_+ , _stScalableDimension = pScalableDimension_+ , _stMinCapacity = pMinCapacity_+ , _stMaxCapacity = pMaxCapacity_+ , _stRoleARN = pRoleARN_+ , _stCreationTime = _Time # pCreationTime_+ } -- | The namespace of the AWS service. 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});+stServiceNamespace = lens _stServiceNamespace (\ s a -> s{_stServiceNamespace = a}) --- | The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . stResourceId :: Lens' ScalableTarget Text-stResourceId = lens _stResourceId (\ s a -> s{_stResourceId = a});+stResourceId = lens _stResourceId (\ s a -> s{_stResourceId = a}) --- | The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. stScalableDimension :: Lens' ScalableTarget ScalableDimension-stScalableDimension = lens _stScalableDimension (\ s a -> s{_stScalableDimension = a});+stScalableDimension = lens _stScalableDimension (\ s a -> s{_stScalableDimension = a}) -- | The minimum value to scale to in response to a scale in event. stMinCapacity :: Lens' ScalableTarget Int-stMinCapacity = lens _stMinCapacity (\ s a -> s{_stMinCapacity = a});+stMinCapacity = lens _stMinCapacity (\ s a -> s{_stMinCapacity = a}) -- | The maximum value to scale to in response to a scale out event. stMaxCapacity :: Lens' ScalableTarget Int-stMaxCapacity = lens _stMaxCapacity (\ s a -> s{_stMaxCapacity = a});+stMaxCapacity = lens _stMaxCapacity (\ s a -> s{_stMaxCapacity = a}) -- | The ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf. stRoleARN :: Lens' ScalableTarget Text-stRoleARN = lens _stRoleARN (\ s a -> s{_stRoleARN = a});+stRoleARN = lens _stRoleARN (\ s a -> s{_stRoleARN = a}) -- | The Unix timestamp for when the scalable target was created. stCreationTime :: Lens' ScalableTarget UTCTime-stCreationTime = lens _stCreationTime (\ s a -> s{_stCreationTime = a}) . _Time;+stCreationTime = lens _stCreationTime (\ s a -> s{_stCreationTime = a}) . _Time instance FromJSON ScalableTarget where parseJSON@@ -384,11 +384,11 @@ -- | The maximum capacity. staMaxCapacity :: Lens' ScalableTargetAction (Maybe Int)-staMaxCapacity = lens _staMaxCapacity (\ s a -> s{_staMaxCapacity = a});+staMaxCapacity = lens _staMaxCapacity (\ s a -> s{_staMaxCapacity = a}) -- | The minimum capacity. staMinCapacity :: Lens' ScalableTargetAction (Maybe Int)-staMinCapacity = lens _staMinCapacity (\ s a -> s{_staMinCapacity = a});+staMinCapacity = lens _staMinCapacity (\ s a -> s{_staMinCapacity = a}) instance FromJSON ScalableTargetAction where parseJSON@@ -442,9 +442,9 @@ -- -- * 'sServiceNamespace' - The namespace of the AWS service. 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/ . ----- * 'sResourceId' - The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'sResourceId' - The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . ----- * 'sScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'sScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. -- -- * 'sDescription' - A simple description of what action the scaling activity intends to accomplish. --@@ -465,63 +465,63 @@ -> ScalingActivity scalingActivity pActivityId_ pServiceNamespace_ pResourceId_ pScalableDimension_ pDescription_ pCause_ pStartTime_ pStatusCode_ = ScalingActivity'- { _sStatusMessage = Nothing- , _sEndTime = Nothing- , _sDetails = Nothing- , _sActivityId = pActivityId_- , _sServiceNamespace = pServiceNamespace_- , _sResourceId = pResourceId_- , _sScalableDimension = pScalableDimension_- , _sDescription = pDescription_- , _sCause = pCause_- , _sStartTime = _Time # pStartTime_- , _sStatusCode = pStatusCode_- }+ { _sStatusMessage = Nothing+ , _sEndTime = Nothing+ , _sDetails = Nothing+ , _sActivityId = pActivityId_+ , _sServiceNamespace = pServiceNamespace_+ , _sResourceId = pResourceId_+ , _sScalableDimension = pScalableDimension_+ , _sDescription = pDescription_+ , _sCause = pCause_+ , _sStartTime = _Time # pStartTime_+ , _sStatusCode = pStatusCode_+ } -- | A simple message about the current status of the scaling activity. sStatusMessage :: Lens' ScalingActivity (Maybe Text)-sStatusMessage = lens _sStatusMessage (\ s a -> s{_sStatusMessage = a});+sStatusMessage = lens _sStatusMessage (\ s a -> s{_sStatusMessage = a}) -- | The Unix timestamp for when the scaling activity ended. sEndTime :: Lens' ScalingActivity (Maybe UTCTime)-sEndTime = lens _sEndTime (\ s a -> s{_sEndTime = a}) . mapping _Time;+sEndTime = lens _sEndTime (\ s a -> s{_sEndTime = a}) . mapping _Time -- | The details about the scaling activity. sDetails :: Lens' ScalingActivity (Maybe Text)-sDetails = lens _sDetails (\ s a -> s{_sDetails = a});+sDetails = lens _sDetails (\ s a -> s{_sDetails = a}) -- | The unique identifier of the scaling activity. sActivityId :: Lens' ScalingActivity Text-sActivityId = lens _sActivityId (\ s a -> s{_sActivityId = a});+sActivityId = lens _sActivityId (\ s a -> s{_sActivityId = a}) -- | The namespace of the AWS service. 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/ . sServiceNamespace :: Lens' ScalingActivity ServiceNamespace-sServiceNamespace = lens _sServiceNamespace (\ s a -> s{_sServiceNamespace = a});+sServiceNamespace = lens _sServiceNamespace (\ s a -> s{_sServiceNamespace = a}) --- | The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . sResourceId :: Lens' ScalingActivity Text-sResourceId = lens _sResourceId (\ s a -> s{_sResourceId = a});+sResourceId = lens _sResourceId (\ s a -> s{_sResourceId = a}) --- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. sScalableDimension :: Lens' ScalingActivity ScalableDimension-sScalableDimension = lens _sScalableDimension (\ s a -> s{_sScalableDimension = a});+sScalableDimension = lens _sScalableDimension (\ s a -> s{_sScalableDimension = a}) -- | A simple description of what action the scaling activity intends to accomplish. sDescription :: Lens' ScalingActivity Text-sDescription = lens _sDescription (\ s a -> s{_sDescription = a});+sDescription = lens _sDescription (\ s a -> s{_sDescription = a}) -- | A simple description of what caused the scaling activity to happen. sCause :: Lens' ScalingActivity Text-sCause = lens _sCause (\ s a -> s{_sCause = a});+sCause = lens _sCause (\ s a -> s{_sCause = a}) -- | The Unix timestamp for when the scaling activity began. sStartTime :: Lens' ScalingActivity UTCTime-sStartTime = lens _sStartTime (\ s a -> s{_sStartTime = a}) . _Time;+sStartTime = lens _sStartTime (\ s a -> s{_sStartTime = a}) . _Time -- | Indicates the status of the scaling activity. sStatusCode :: Lens' ScalingActivity ScalingActivityStatusCode-sStatusCode = lens _sStatusCode (\ s a -> s{_sStatusCode = a});+sStatusCode = lens _sStatusCode (\ s a -> s{_sStatusCode = a}) instance FromJSON ScalingActivity where parseJSON@@ -578,9 +578,9 @@ -- -- * 'spServiceNamespace' - The namespace of the AWS service. 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/ . ----- * 'spResourceId' - The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'spResourceId' - The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . ----- * 'spScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'spScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. -- -- * 'spPolicyType' - The scaling policy type. --@@ -596,58 +596,58 @@ -> ScalingPolicy scalingPolicy pPolicyARN_ pPolicyName_ pServiceNamespace_ pResourceId_ pScalableDimension_ pPolicyType_ pCreationTime_ = ScalingPolicy'- { _spTargetTrackingScalingPolicyConfiguration = Nothing- , _spStepScalingPolicyConfiguration = Nothing- , _spAlarms = Nothing- , _spPolicyARN = pPolicyARN_- , _spPolicyName = pPolicyName_- , _spServiceNamespace = pServiceNamespace_- , _spResourceId = pResourceId_- , _spScalableDimension = pScalableDimension_- , _spPolicyType = pPolicyType_- , _spCreationTime = _Time # pCreationTime_- }+ { _spTargetTrackingScalingPolicyConfiguration = Nothing+ , _spStepScalingPolicyConfiguration = Nothing+ , _spAlarms = Nothing+ , _spPolicyARN = pPolicyARN_+ , _spPolicyName = pPolicyName_+ , _spServiceNamespace = pServiceNamespace_+ , _spResourceId = pResourceId_+ , _spScalableDimension = pScalableDimension_+ , _spPolicyType = pPolicyType_+ , _spCreationTime = _Time # pCreationTime_+ } -- | A target tracking policy. spTargetTrackingScalingPolicyConfiguration :: Lens' ScalingPolicy (Maybe TargetTrackingScalingPolicyConfiguration)-spTargetTrackingScalingPolicyConfiguration = lens _spTargetTrackingScalingPolicyConfiguration (\ s a -> s{_spTargetTrackingScalingPolicyConfiguration = a});+spTargetTrackingScalingPolicyConfiguration = lens _spTargetTrackingScalingPolicyConfiguration (\ s a -> s{_spTargetTrackingScalingPolicyConfiguration = a}) -- | A step scaling policy. spStepScalingPolicyConfiguration :: Lens' ScalingPolicy (Maybe StepScalingPolicyConfiguration)-spStepScalingPolicyConfiguration = lens _spStepScalingPolicyConfiguration (\ s a -> s{_spStepScalingPolicyConfiguration = a});+spStepScalingPolicyConfiguration = lens _spStepScalingPolicyConfiguration (\ s a -> s{_spStepScalingPolicyConfiguration = a}) -- | The CloudWatch alarms associated with the scaling policy. spAlarms :: Lens' ScalingPolicy [Alarm]-spAlarms = lens _spAlarms (\ s a -> s{_spAlarms = a}) . _Default . _Coerce;+spAlarms = lens _spAlarms (\ s a -> s{_spAlarms = a}) . _Default . _Coerce -- | The Amazon Resource Name (ARN) of the scaling policy. spPolicyARN :: Lens' ScalingPolicy Text-spPolicyARN = lens _spPolicyARN (\ s a -> s{_spPolicyARN = a});+spPolicyARN = lens _spPolicyARN (\ s a -> s{_spPolicyARN = a}) -- | The name of the scaling policy. spPolicyName :: Lens' ScalingPolicy Text-spPolicyName = lens _spPolicyName (\ s a -> s{_spPolicyName = a});+spPolicyName = lens _spPolicyName (\ s a -> s{_spPolicyName = a}) -- | The namespace of the AWS service. 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});+spServiceNamespace = lens _spServiceNamespace (\ s a -> s{_spServiceNamespace = a}) --- | The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . spResourceId :: Lens' ScalingPolicy Text-spResourceId = lens _spResourceId (\ s a -> s{_spResourceId = a});+spResourceId = lens _spResourceId (\ s a -> s{_spResourceId = a}) --- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. spScalableDimension :: Lens' ScalingPolicy ScalableDimension-spScalableDimension = lens _spScalableDimension (\ s a -> s{_spScalableDimension = a});+spScalableDimension = lens _spScalableDimension (\ s a -> s{_spScalableDimension = a}) -- | The scaling policy type. spPolicyType :: Lens' ScalingPolicy PolicyType-spPolicyType = lens _spPolicyType (\ s a -> s{_spPolicyType = a});+spPolicyType = lens _spPolicyType (\ s a -> s{_spPolicyType = a}) -- | The Unix timestamp for when the scaling policy was created. spCreationTime :: Lens' ScalingPolicy UTCTime-spCreationTime = lens _spCreationTime (\ s a -> s{_spCreationTime = a}) . _Time;+spCreationTime = lens _spCreationTime (\ s a -> s{_spCreationTime = a}) . _Time instance FromJSON ScalingPolicy where parseJSON@@ -692,7 +692,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'saScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- * 'saScalableDimension' - The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. -- -- * 'saStartTime' - The date and time that the action is scheduled to begin. --@@ -708,7 +708,7 @@ -- -- * 'saSchedule' - The schedule for this action. The following formats are supported: * At expressions - @at(/yyyy/ -/mm/ -/dd/ T/hh/ :/mm/ :/ss/ )@ * Rate expressions - @rate(/value/ /unit/ )@ * Cron expressions - @cron(/fields/ )@ At expressions are useful for one-time schedules. Specify the time, in UTC. For rate expressions, /value/ is a positive integer and /unit/ is @minute@ | @minutes@ | @hour@ | @hours@ | @day@ | @days@ . For more information about cron expressions, see <https://en.wikipedia.org/wiki/Cron Cron> . ----- * 'saResourceId' - The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- * 'saResourceId' - The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . -- -- * 'saCreationTime' - The date and time that the scheduled action was created. scheduledAction@@ -721,58 +721,58 @@ -> ScheduledAction scheduledAction pScheduledActionName_ pScheduledActionARN_ pServiceNamespace_ pSchedule_ pResourceId_ pCreationTime_ = ScheduledAction'- { _saScalableDimension = Nothing- , _saStartTime = Nothing- , _saEndTime = Nothing- , _saScalableTargetAction = Nothing- , _saScheduledActionName = pScheduledActionName_- , _saScheduledActionARN = pScheduledActionARN_- , _saServiceNamespace = pServiceNamespace_- , _saSchedule = pSchedule_- , _saResourceId = pResourceId_- , _saCreationTime = _Time # pCreationTime_- }+ { _saScalableDimension = Nothing+ , _saStartTime = Nothing+ , _saEndTime = Nothing+ , _saScalableTargetAction = Nothing+ , _saScheduledActionName = pScheduledActionName_+ , _saScheduledActionARN = pScheduledActionARN_+ , _saServiceNamespace = pServiceNamespace_+ , _saSchedule = pSchedule_+ , _saResourceId = pResourceId_+ , _saCreationTime = _Time # pCreationTime_+ } --- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index.+-- | The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * @ecs:service:DesiredCount@ - The desired task count of an ECS service. * @ec2:spot-fleet-request:TargetCapacity@ - The target capacity of a Spot fleet request. * @elasticmapreduce:instancegroup:InstanceCount@ - The instance count of an EMR Instance Group. * @appstream:fleet:DesiredCapacity@ - The desired capacity of an AppStream 2.0 fleet. * @dynamodb:table:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB table. * @dynamodb:table:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB table. * @dynamodb:index:ReadCapacityUnits@ - The provisioned read capacity for a DynamoDB global secondary index. * @dynamodb:index:WriteCapacityUnits@ - The provisioned write capacity for a DynamoDB global secondary index. * @rds:cluster:ReadReplicaCount@ - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition. * @sagemaker:variant:DesiredInstanceCount@ - The number of EC2 instances for an Amazon SageMaker model endpoint variant. saScalableDimension :: Lens' ScheduledAction (Maybe ScalableDimension)-saScalableDimension = lens _saScalableDimension (\ s a -> s{_saScalableDimension = a});+saScalableDimension = lens _saScalableDimension (\ s a -> s{_saScalableDimension = a}) -- | The date and time that the action is scheduled to begin. saStartTime :: Lens' ScheduledAction (Maybe UTCTime)-saStartTime = lens _saStartTime (\ s a -> s{_saStartTime = a}) . mapping _Time;+saStartTime = lens _saStartTime (\ s a -> s{_saStartTime = a}) . mapping _Time -- | The date and time that the action is scheduled to end. saEndTime :: Lens' ScheduledAction (Maybe UTCTime)-saEndTime = lens _saEndTime (\ s a -> s{_saEndTime = a}) . mapping _Time;+saEndTime = lens _saEndTime (\ s a -> s{_saEndTime = a}) . mapping _Time -- | The new minimum and maximum capacity. You can set both values or just one. During the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. If the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity. saScalableTargetAction :: Lens' ScheduledAction (Maybe ScalableTargetAction)-saScalableTargetAction = lens _saScalableTargetAction (\ s a -> s{_saScalableTargetAction = a});+saScalableTargetAction = lens _saScalableTargetAction (\ s a -> s{_saScalableTargetAction = a}) -- | The name of the scheduled action. saScheduledActionName :: Lens' ScheduledAction Text-saScheduledActionName = lens _saScheduledActionName (\ s a -> s{_saScheduledActionName = a});+saScheduledActionName = lens _saScheduledActionName (\ s a -> s{_saScheduledActionName = a}) -- | The Amazon Resource Name (ARN) of the scheduled action. saScheduledActionARN :: Lens' ScheduledAction Text-saScheduledActionARN = lens _saScheduledActionARN (\ s a -> s{_saScheduledActionARN = a});+saScheduledActionARN = lens _saScheduledActionARN (\ s a -> s{_saScheduledActionARN = a}) -- | The namespace of the AWS service. 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' ScheduledAction ServiceNamespace-saServiceNamespace = lens _saServiceNamespace (\ s a -> s{_saServiceNamespace = a});+saServiceNamespace = lens _saServiceNamespace (\ s a -> s{_saServiceNamespace = a}) -- | The schedule for this action. The following formats are supported: * At expressions - @at(/yyyy/ -/mm/ -/dd/ T/hh/ :/mm/ :/ss/ )@ * Rate expressions - @rate(/value/ /unit/ )@ * Cron expressions - @cron(/fields/ )@ At expressions are useful for one-time schedules. Specify the time, in UTC. For rate expressions, /value/ is a positive integer and /unit/ is @minute@ | @minutes@ | @hour@ | @hours@ | @day@ | @days@ . For more information about cron expressions, see <https://en.wikipedia.org/wiki/Cron Cron> . saSchedule :: Lens' ScheduledAction Text-saSchedule = lens _saSchedule (\ s a -> s{_saSchedule = a});+saSchedule = lens _saSchedule (\ s a -> s{_saSchedule = a}) --- | The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ .+-- | The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. * ECS service - The resource type is @service@ and the unique identifier is the cluster name and service name. Example: @service/default/sample-webapp@ . * Spot fleet request - The resource type is @spot-fleet-request@ and the unique identifier is the Spot fleet request ID. Example: @spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE@ . * EMR cluster - The resource type is @instancegroup@ and the unique identifier is the cluster ID and instance group ID. Example: @instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0@ . * AppStream 2.0 fleet - The resource type is @fleet@ and the unique identifier is the fleet name. Example: @fleet/sample-fleet@ . * DynamoDB table - The resource type is @table@ and the unique identifier is the resource ID. Example: @table/my-table@ . * DynamoDB global secondary index - The resource type is @index@ and the unique identifier is the resource ID. Example: @table/my-table/index/my-table-index@ . * Aurora DB cluster - The resource type is @cluster@ and the unique identifier is the cluster name. Example: @cluster:my-db-cluster@ . * Amazon SageMaker endpoint variants - The resource type is @variant@ and the unique identifier is the resource ID. Example: @endpoint/my-end-point/variant/KMeansClustering@ . saResourceId :: Lens' ScheduledAction Text-saResourceId = lens _saResourceId (\ s a -> s{_saResourceId = a});+saResourceId = lens _saResourceId (\ s a -> s{_saResourceId = a}) -- | The date and time that the scheduled action was created. saCreationTime :: Lens' ScheduledAction UTCTime-saCreationTime = lens _saCreationTime (\ s a -> s{_saCreationTime = a}) . _Time;+saCreationTime = lens _saCreationTime (\ s a -> s{_saCreationTime = a}) . _Time instance FromJSON ScheduledAction where parseJSON@@ -839,23 +839,23 @@ -> StepAdjustment stepAdjustment pScalingAdjustment_ = StepAdjustment'- { _saMetricIntervalLowerBound = Nothing- , _saMetricIntervalUpperBound = Nothing- , _saScalingAdjustment = pScalingAdjustment_- }+ { _saMetricIntervalLowerBound = Nothing+ , _saMetricIntervalUpperBound = Nothing+ , _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. saMetricIntervalLowerBound :: Lens' StepAdjustment (Maybe Double)-saMetricIntervalLowerBound = lens _saMetricIntervalLowerBound (\ s a -> s{_saMetricIntervalLowerBound = a});+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 must be greater than the lower bound. saMetricIntervalUpperBound :: Lens' StepAdjustment (Maybe Double)-saMetricIntervalUpperBound = lens _saMetricIntervalUpperBound (\ s a -> s{_saMetricIntervalUpperBound = a});+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. saScalingAdjustment :: Lens' StepAdjustment Int-saScalingAdjustment = lens _saScalingAdjustment (\ s a -> s{_saScalingAdjustment = a});+saScalingAdjustment = lens _saScalingAdjustment (\ s a -> s{_saScalingAdjustment = a}) instance FromJSON StepAdjustment where parseJSON@@ -911,33 +911,33 @@ :: StepScalingPolicyConfiguration stepScalingPolicyConfiguration = StepScalingPolicyConfiguration'- { _sspcStepAdjustments = Nothing- , _sspcAdjustmentType = Nothing- , _sspcCooldown = Nothing- , _sspcMetricAggregationType = Nothing- , _sspcMinAdjustmentMagnitude = Nothing- }+ { _sspcStepAdjustments = Nothing+ , _sspcAdjustmentType = Nothing+ , _sspcCooldown = Nothing+ , _sspcMetricAggregationType = Nothing+ , _sspcMinAdjustmentMagnitude = Nothing+ } -- | 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;+sspcStepAdjustments = lens _sspcStepAdjustments (\ s a -> s{_sspcStepAdjustments = a}) . _Default . _Coerce -- | 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});+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. For scale out policies, while the cooldown period 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. sspcCooldown :: Lens' StepScalingPolicyConfiguration (Maybe Int)-sspcCooldown = lens _sspcCooldown (\ s a -> s{_sspcCooldown = a});+sspcCooldown = lens _sspcCooldown (\ s a -> s{_sspcCooldown = a}) -- | 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});+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. sspcMinAdjustmentMagnitude :: Lens' StepScalingPolicyConfiguration (Maybe Int)-sspcMinAdjustmentMagnitude = lens _sspcMinAdjustmentMagnitude (\ s a -> s{_sspcMinAdjustmentMagnitude = a});+sspcMinAdjustmentMagnitude = lens _sspcMinAdjustmentMagnitude (\ s a -> s{_sspcMinAdjustmentMagnitude = a}) instance FromJSON StepScalingPolicyConfiguration where@@ -991,7 +991,7 @@ -- -- * 'ttspcScaleInCooldown' - The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. 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. ----- * 'ttspcCustomizedMetricSpecification' - Reserved for future use.+-- * 'ttspcCustomizedMetricSpecification' - A customized metric. -- -- * 'ttspcDisableScaleIn' - Indicates whether scale in by the target tracking policy is disabled. If the value is @true@ , scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is @false@ . --@@ -1003,38 +1003,38 @@ -> TargetTrackingScalingPolicyConfiguration targetTrackingScalingPolicyConfiguration pTargetValue_ = TargetTrackingScalingPolicyConfiguration'- { _ttspcPredefinedMetricSpecification = Nothing- , _ttspcScaleInCooldown = Nothing- , _ttspcCustomizedMetricSpecification = Nothing- , _ttspcDisableScaleIn = Nothing- , _ttspcScaleOutCooldown = Nothing- , _ttspcTargetValue = pTargetValue_- }+ { _ttspcPredefinedMetricSpecification = Nothing+ , _ttspcScaleInCooldown = Nothing+ , _ttspcCustomizedMetricSpecification = Nothing+ , _ttspcDisableScaleIn = Nothing+ , _ttspcScaleOutCooldown = Nothing+ , _ttspcTargetValue = pTargetValue_+ } -- | A predefined metric. ttspcPredefinedMetricSpecification :: Lens' TargetTrackingScalingPolicyConfiguration (Maybe PredefinedMetricSpecification)-ttspcPredefinedMetricSpecification = lens _ttspcPredefinedMetricSpecification (\ s a -> s{_ttspcPredefinedMetricSpecification = a});+ttspcPredefinedMetricSpecification = lens _ttspcPredefinedMetricSpecification (\ s a -> s{_ttspcPredefinedMetricSpecification = a}) -- | The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. 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. ttspcScaleInCooldown :: Lens' TargetTrackingScalingPolicyConfiguration (Maybe Int)-ttspcScaleInCooldown = lens _ttspcScaleInCooldown (\ s a -> s{_ttspcScaleInCooldown = a});+ttspcScaleInCooldown = lens _ttspcScaleInCooldown (\ s a -> s{_ttspcScaleInCooldown = a}) --- | Reserved for future use.+-- | A customized metric. ttspcCustomizedMetricSpecification :: Lens' TargetTrackingScalingPolicyConfiguration (Maybe CustomizedMetricSpecification)-ttspcCustomizedMetricSpecification = lens _ttspcCustomizedMetricSpecification (\ s a -> s{_ttspcCustomizedMetricSpecification = a});+ttspcCustomizedMetricSpecification = lens _ttspcCustomizedMetricSpecification (\ s a -> s{_ttspcCustomizedMetricSpecification = a}) -- | Indicates whether scale in by the target tracking policy is disabled. If the value is @true@ , scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is @false@ . ttspcDisableScaleIn :: Lens' TargetTrackingScalingPolicyConfiguration (Maybe Bool)-ttspcDisableScaleIn = lens _ttspcDisableScaleIn (\ s a -> s{_ttspcDisableScaleIn = a});+ttspcDisableScaleIn = lens _ttspcDisableScaleIn (\ s a -> s{_ttspcDisableScaleIn = a}) -- | The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period 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. ttspcScaleOutCooldown :: Lens' TargetTrackingScalingPolicyConfiguration (Maybe Int)-ttspcScaleOutCooldown = lens _ttspcScaleOutCooldown (\ s a -> s{_ttspcScaleOutCooldown = a});+ttspcScaleOutCooldown = lens _ttspcScaleOutCooldown (\ s a -> s{_ttspcScaleOutCooldown = a}) -- | The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). ttspcTargetValue :: Lens' TargetTrackingScalingPolicyConfiguration Double-ttspcTargetValue = lens _ttspcTargetValue (\ s a -> s{_ttspcTargetValue = a});+ttspcTargetValue = lens _ttspcTargetValue (\ s a -> s{_ttspcTargetValue = a}) instance FromJSON TargetTrackingScalingPolicyConfiguration
gen/Network/AWS/ApplicationAutoScaling/Types/Sum.hs view
@@ -9,7 +9,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.Types.Sum--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated@@ -125,22 +125,49 @@ parseJSON = parseJSONText "MetricStatistic" data MetricType- = DynamoDBReadCapacityUtilization+ = ALBRequestCountPerTarget+ | DynamoDBReadCapacityUtilization | DynamoDBWriteCapacityUtilization+ | EC2SpotFleetRequestAverageCPUUtilization+ | EC2SpotFleetRequestAverageNetworkIn+ | EC2SpotFleetRequestAverageNetworkOut+ | ECSServiceAverageCPUUtilization+ | ECSServiceAverageMemoryUtilization+ | RDSReaderAverageCPUUtilization+ | RDSReaderAverageDatabaseConnections+ | SageMakerVariantInvocationsPerInstance deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) instance FromText MetricType where parser = takeLowerText >>= \case+ "albrequestcountpertarget" -> pure ALBRequestCountPerTarget "dynamodbreadcapacityutilization" -> pure DynamoDBReadCapacityUtilization "dynamodbwritecapacityutilization" -> pure DynamoDBWriteCapacityUtilization+ "ec2spotfleetrequestaveragecpuutilization" -> pure EC2SpotFleetRequestAverageCPUUtilization+ "ec2spotfleetrequestaveragenetworkin" -> pure EC2SpotFleetRequestAverageNetworkIn+ "ec2spotfleetrequestaveragenetworkout" -> pure EC2SpotFleetRequestAverageNetworkOut+ "ecsserviceaveragecpuutilization" -> pure ECSServiceAverageCPUUtilization+ "ecsserviceaveragememoryutilization" -> pure ECSServiceAverageMemoryUtilization+ "rdsreaderaveragecpuutilization" -> pure RDSReaderAverageCPUUtilization+ "rdsreaderaveragedatabaseconnections" -> pure RDSReaderAverageDatabaseConnections+ "sagemakervariantinvocationsperinstance" -> pure SageMakerVariantInvocationsPerInstance e -> fromTextError $ "Failure parsing MetricType from value: '" <> e- <> "'. Accepted values: dynamodbreadcapacityutilization, dynamodbwritecapacityutilization"+ <> "'. Accepted values: albrequestcountpertarget, dynamodbreadcapacityutilization, dynamodbwritecapacityutilization, ec2spotfleetrequestaveragecpuutilization, ec2spotfleetrequestaveragenetworkin, ec2spotfleetrequestaveragenetworkout, ecsserviceaveragecpuutilization, ecsserviceaveragememoryutilization, rdsreaderaveragecpuutilization, rdsreaderaveragedatabaseconnections, sagemakervariantinvocationsperinstance" instance ToText MetricType where toText = \case+ ALBRequestCountPerTarget -> "ALBRequestCountPerTarget" DynamoDBReadCapacityUtilization -> "DynamoDBReadCapacityUtilization" DynamoDBWriteCapacityUtilization -> "DynamoDBWriteCapacityUtilization"+ EC2SpotFleetRequestAverageCPUUtilization -> "EC2SpotFleetRequestAverageCPUUtilization"+ EC2SpotFleetRequestAverageNetworkIn -> "EC2SpotFleetRequestAverageNetworkIn"+ EC2SpotFleetRequestAverageNetworkOut -> "EC2SpotFleetRequestAverageNetworkOut"+ ECSServiceAverageCPUUtilization -> "ECSServiceAverageCPUUtilization"+ ECSServiceAverageMemoryUtilization -> "ECSServiceAverageMemoryUtilization"+ RDSReaderAverageCPUUtilization -> "RDSReaderAverageCPUUtilization"+ RDSReaderAverageDatabaseConnections -> "RDSReaderAverageDatabaseConnections"+ SageMakerVariantInvocationsPerInstance -> "SageMakerVariantInvocationsPerInstance" instance Hashable MetricType instance NFData MetricType@@ -193,6 +220,8 @@ | EC2SpotFleetRequestTargetCapacity | EcsServiceDesiredCount | ElasticmapreduceInstancegroupInstanceCount+ | RDSClusterReadReplicaCount+ | SagemakerVariantDesiredInstanceCount deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) @@ -206,8 +235,10 @@ "ec2:spot-fleet-request:targetcapacity" -> pure EC2SpotFleetRequestTargetCapacity "ecs:service:desiredcount" -> pure EcsServiceDesiredCount "elasticmapreduce:instancegroup:instancecount" -> pure ElasticmapreduceInstancegroupInstanceCount+ "rds:cluster:readreplicacount" -> pure RDSClusterReadReplicaCount+ "sagemaker:variant:desiredinstancecount" -> pure SagemakerVariantDesiredInstanceCount e -> fromTextError $ "Failure parsing ScalableDimension from value: '" <> e- <> "'. Accepted values: appstream:fleet:desiredcapacity, dynamodb:index:readcapacityunits, dynamodb:index:writecapacityunits, dynamodb:table:readcapacityunits, dynamodb:table:writecapacityunits, ec2:spot-fleet-request:targetcapacity, ecs:service:desiredcount, elasticmapreduce:instancegroup:instancecount"+ <> "'. Accepted values: appstream:fleet:desiredcapacity, dynamodb:index:readcapacityunits, dynamodb:index:writecapacityunits, dynamodb:table:readcapacityunits, dynamodb:table:writecapacityunits, ec2:spot-fleet-request:targetcapacity, ecs:service:desiredcount, elasticmapreduce:instancegroup:instancecount, rds:cluster:readreplicacount, sagemaker:variant:desiredinstancecount" instance ToText ScalableDimension where toText = \case@@ -219,6 +250,8 @@ EC2SpotFleetRequestTargetCapacity -> "ec2:spot-fleet-request:TargetCapacity" EcsServiceDesiredCount -> "ecs:service:DesiredCount" ElasticmapreduceInstancegroupInstanceCount -> "elasticmapreduce:instancegroup:InstanceCount"+ RDSClusterReadReplicaCount -> "rds:cluster:ReadReplicaCount"+ SagemakerVariantDesiredInstanceCount -> "sagemaker:variant:DesiredInstanceCount" instance Hashable ScalableDimension instance NFData ScalableDimension@@ -277,6 +310,8 @@ | EC2 | Ecs | Elasticmapreduce+ | RDS+ | Sagemaker deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) @@ -287,8 +322,10 @@ "ec2" -> pure EC2 "ecs" -> pure Ecs "elasticmapreduce" -> pure Elasticmapreduce+ "rds" -> pure RDS+ "sagemaker" -> pure Sagemaker e -> fromTextError $ "Failure parsing ServiceNamespace from value: '" <> e- <> "'. Accepted values: appstream, dynamodb, ec2, ecs, elasticmapreduce"+ <> "'. Accepted values: appstream, dynamodb, ec2, ecs, elasticmapreduce, rds, sagemaker" instance ToText ServiceNamespace where toText = \case@@ -297,6 +334,8 @@ EC2 -> "ec2" Ecs -> "ecs" Elasticmapreduce -> "elasticmapreduce"+ RDS -> "rds"+ Sagemaker -> "sagemaker" instance Hashable ServiceNamespace instance NFData ServiceNamespace
gen/Network/AWS/ApplicationAutoScaling/Waiters.hs view
@@ -7,7 +7,7 @@ -- | -- Module : Network.AWS.ApplicationAutoScaling.Waiters--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated
test/Main.hs view
@@ -2,7 +2,7 @@ -- | -- Module : Main--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated
test/Test/AWS/ApplicationAutoScaling.hs view
@@ -2,7 +2,7 @@ -- | -- Module : Test.AWS.ApplicationAutoScaling--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : This Source Code Form is subject to the terms of -- the Mozilla Public License, v. 2.0. -- A copy of the MPL can be found in the LICENSE file or
test/Test/AWS/ApplicationAutoScaling/Internal.hs view
@@ -3,7 +3,7 @@ -- | -- Module : Test.AWS.ApplicationAutoScaling.Internal--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : This Source Code Form is subject to the terms of -- the Mozilla Public License, v. 2.0. -- A copy of the MPL can be found in the LICENSE file or
test/Test/AWS/Gen/ApplicationAutoScaling.hs view
@@ -5,7 +5,7 @@ -- | -- Module : Test.AWS.Gen.ApplicationAutoScaling--- Copyright : (c) 2013-2017 Brendan Hay+-- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated