Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes a fleet scaling policy. Once deleted, the policy is no longer in force and GameLift removes all record of it. To delete a scaling policy, specify both the scaling policy name and the fleet ID it is associated with.
To temporarily suspend scaling policies, call StopFleetActions. This operation suspends all policies for the fleet.
Related actions
DescribeFleetCapacity | UpdateFleetCapacity | DescribeEC2InstanceLimits | PutScalingPolicy | DescribeScalingPolicies | DeleteScalingPolicy | StopFleetActions | StartFleetActions | All APIs by task
Synopsis
- data DeleteScalingPolicy = DeleteScalingPolicy' {}
- newDeleteScalingPolicy :: Text -> Text -> DeleteScalingPolicy
- deleteScalingPolicy_name :: Lens' DeleteScalingPolicy Text
- deleteScalingPolicy_fleetId :: Lens' DeleteScalingPolicy Text
- data DeleteScalingPolicyResponse = DeleteScalingPolicyResponse' {
- newDeleteScalingPolicyResponse :: DeleteScalingPolicyResponse
Creating a Request
data DeleteScalingPolicy Source #
Represents the input for a request operation.
See: newDeleteScalingPolicy
smart constructor.
Instances
newDeleteScalingPolicy Source #
Create a value of DeleteScalingPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:DeleteScalingPolicy'
, deleteScalingPolicy_name
- A descriptive label that is associated with a fleet's scaling policy.
Policy names do not need to be unique.
$sel:fleetId:DeleteScalingPolicy'
, deleteScalingPolicy_fleetId
- A unique identifier for the fleet to be deleted. You can use either the
fleet ID or ARN value.
Request Lenses
deleteScalingPolicy_name :: Lens' DeleteScalingPolicy Text Source #
A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique.
deleteScalingPolicy_fleetId :: Lens' DeleteScalingPolicy Text Source #
A unique identifier for the fleet to be deleted. You can use either the fleet ID or ARN value.
Destructuring the Response
data DeleteScalingPolicyResponse Source #
See: newDeleteScalingPolicyResponse
smart constructor.
Instances
newDeleteScalingPolicyResponse :: DeleteScalingPolicyResponse Source #
Create a value of DeleteScalingPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.