@Test public void revokeIngressRules() { amazonEc2.setRegion(region); amazonEc2.revokeSecurityGroupIngress(new RevokeSecurityGroupIngressRequest( "securityGroupName", ImmutableList.of(ipPermission(7000, "4.4.4.4/32")))); replayAll(); service().revokeIngressRules("securityGroupName", "dc1", groupPermission(7000, "4.4.4.4/32")); }
@Override public void revokeIngressRules(String groupName, String dataCenter, SecurityGroupPermission permission) { client(dataCenter).revokeSecurityGroupIngress( new RevokeSecurityGroupIngressRequest(groupName, toIpPermissions(permission))); }
Ec2SecurityGroupService implements SecurityGroupService { @Override public void revokeIngressRules(String groupName, String dataCenter, SecurityGroupPermission permission) { client(dataCenter).revokeSecurityGroupIngress( new RevokeSecurityGroupIngressRequest(groupName, toIpPermissions(permission))); } }
Ec2SecurityGroupService implements SecurityGroupService { @Override public void revokeIngressRules(String groupName, String dataCenter, SecurityGroupPermission permission) { client(dataCenter).revokeSecurityGroupIngress( new RevokeSecurityGroupIngressRequest(groupName, toIpPermissions(permission))); } @Inject  Ec2SecurityGroupService(Provider<AmazonEC2> amazonEC2Provider,
      @Named(SecurityGroupModule.SECURITY_GROUP_DATACENTERS_PROPERTY) Map<String, Region> regions); }
Ec2SecurityGroupService implements SecurityGroupService { @Override public void revokeIngressRules(String groupName, String dataCenter, SecurityGroupPermission permission) { client(dataCenter).revokeSecurityGroupIngress( new RevokeSecurityGroupIngressRequest(groupName, toIpPermissions(permission))); } @Inject  Ec2SecurityGroupService(Provider<AmazonEC2> amazonEC2Provider,
      @Named(SecurityGroupModule.SECURITY_GROUP_DATACENTERS_PROPERTY) Map<String, Region> regions); @Override boolean exists(String groupName, String dataCenter); @Override void create(String groupName, String dataCenter); @Override ImmutableSet<SecurityGroupPermission> getPermissions(String groupName, String dataCenter); @Override void authorizeIngressRules(String groupName, String dataCenter, SecurityGroupPermission permission); @Override void revokeIngressRules(String groupName, String dataCenter, SecurityGroupPermission permission); }
Ec2SecurityGroupService implements SecurityGroupService { @Override public void revokeIngressRules(String groupName, String dataCenter, SecurityGroupPermission permission) { client(dataCenter).revokeSecurityGroupIngress( new RevokeSecurityGroupIngressRequest(groupName, toIpPermissions(permission))); } @Inject  Ec2SecurityGroupService(Provider<AmazonEC2> amazonEC2Provider,
      @Named(SecurityGroupModule.SECURITY_GROUP_DATACENTERS_PROPERTY) Map<String, Region> regions); @Override boolean exists(String groupName, String dataCenter); @Override void create(String groupName, String dataCenter); @Override ImmutableSet<SecurityGroupPermission> getPermissions(String groupName, String dataCenter); @Override void authorizeIngressRules(String groupName, String dataCenter, SecurityGroupPermission permission); @Override void revokeIngressRules(String groupName, String dataCenter, SecurityGroupPermission permission);  }