Examples of canChangeInstanceSecurityGroups()


Examples of com.netflix.simianarmy.CloudClient.canChangeInstanceSecurityGroups()

    @Override
    public boolean canApply(ChaosInstance instance) {
        CloudClient cloudClient = instance.getCloudClient();
        String instanceId = instance.getInstanceId();

        if (!cloudClient.canChangeInstanceSecurityGroups(instanceId)) {
            LOGGER.info("Not a VPC instance, can't change security groups");
            return false;
        }

        return super.canApply(instance);
View Full Code Here

Examples of com.netflix.simianarmy.CloudClient.canChangeInstanceSecurityGroups()

    @Override
    public void apply(ChaosInstance instance) {
        CloudClient cloudClient = instance.getCloudClient();
        String instanceId = instance.getInstanceId();

        if (!cloudClient.canChangeInstanceSecurityGroups(instanceId)) {
            throw new IllegalStateException("canApply should have returned false");
        }

        String groupId = cloudClient.findSecurityGroup(instance.getInstanceId(), blockedSecurityGroupName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.