class AwsEC2Container extends AwsContainer {

    @ChaosExperiment(experimentType = ExperimentType.STATE, experimentScope = ExperimentScope.CATTLE)
    public void terminateASGContainer (Experiment experiment) {
        if (!isNativeAwsAutoscaling()) {
            log.debug("Instance {} is not part of an autoscaling group, won't terminate it.", v(DataDogConstants.EC2_INSTANCE, instanceId));
            throw new ChaosException(NOT_PART_OF_ASG);
        }
        awsEC2Platform.terminateInstance(instanceId);
        experiment.setCheckContainerHealth(autoscalingHealthcheckWrapper(() -> ContainerHealth.RUNNING_EXPERIMENT));
        experiment.setSelfHealingMethod(autoscalingSelfHealingWrapper(() -> {}));
    }

    private  AwsEC2Container();

}