Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deregisters a scalable target.
Deregistering a scalable target deletes the scaling policies that are associated with it.
To create a scalable target or update an existing one, see RegisterScalableTarget
.
- deregisterScalableTarget :: ServiceNamespace -> Text -> ScalableDimension -> DeregisterScalableTarget
- data DeregisterScalableTarget
- derServiceNamespace :: Lens' DeregisterScalableTarget ServiceNamespace
- derResourceId :: Lens' DeregisterScalableTarget Text
- derScalableDimension :: Lens' DeregisterScalableTarget ScalableDimension
- deregisterScalableTargetResponse :: Int -> DeregisterScalableTargetResponse
- data DeregisterScalableTargetResponse
- dstrsResponseStatus :: Lens' DeregisterScalableTargetResponse Int
Creating a Request
deregisterScalableTarget Source #
Creates a value of DeregisterScalableTarget
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
derServiceNamespace
- The namespace of the AWS service. For more information, see 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 isservice
and the unique identifier is the cluster name and service name. Example:servicedefaultsample-webapp
. * Spot fleet request - The resource type isspot-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 isinstancegroup
and the unique identifier is the cluster ID and instance group ID. Example:instancegroupj-2EEZNYKUA1NTVig-1791Y4E1L8YI0
.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.
data DeregisterScalableTarget Source #
See: deregisterScalableTarget
smart constructor.
Request Lenses
derServiceNamespace :: Lens' DeregisterScalableTarget ServiceNamespace Source #
The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference .
derResourceId :: Lens' DeregisterScalableTarget Text Source #
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: servicedefaultsample-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: instancegroupj-2EEZNYKUA1NTVig-1791Y4E1L8YI0
.
derScalableDimension :: Lens' DeregisterScalableTarget ScalableDimension Source #
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.
Destructuring the Response
deregisterScalableTargetResponse Source #
Creates a value of DeregisterScalableTargetResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dstrsResponseStatus
- -- | The response status code.
data DeregisterScalableTargetResponse Source #
See: deregisterScalableTargetResponse
smart constructor.
Response Lenses
dstrsResponseStatus :: Lens' DeregisterScalableTargetResponse Int Source #
- - | The response status code.