Amazon.ApplicationAutoScaling.AmazonApplicationAutoScalingClient.DeleteScalingPolicy C# (CSharp) Méthode

DeleteScalingPolicy() public méthode

Deletes the specified Application Auto Scaling scaling policy.

Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm associated with the scaling policy, even if it no longer has an associated action.

To create a scaling policy or update an existing one, see PutScalingPolicy.

/// Concurrent updates caused an exception, for example, if you request an update to an /// Application Auto Scaling resource that already has a pending update. /// /// The service encountered an internal error. /// /// 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. /// /// An exception was thrown for a validation issue. Review the available parameters for /// the API request. ///
public DeleteScalingPolicy ( DeleteScalingPolicyRequest request ) : DeleteScalingPolicyResponse
request Amazon.ApplicationAutoScaling.Model.DeleteScalingPolicyRequest Container for the necessary parameters to execute the DeleteScalingPolicy service method.
Résultat DeleteScalingPolicyResponse
        public DeleteScalingPolicyResponse DeleteScalingPolicy(DeleteScalingPolicyRequest request)
        {
            var marshaller = new DeleteScalingPolicyRequestMarshaller();
            var unmarshaller = DeleteScalingPolicyResponseUnmarshaller.Instance;

            return Invoke<DeleteScalingPolicyRequest,DeleteScalingPolicyResponse>(request, marshaller, unmarshaller);
        }