org.dasein.cloud.aws.network
Class NetworkACL
java.lang.Object
org.dasein.cloud.network.AbstractNetworkFirewallSupport
org.dasein.cloud.aws.network.NetworkACL
- All Implemented Interfaces:
- org.dasein.cloud.AccessControlledService, org.dasein.cloud.network.NetworkFirewallSupport
public class NetworkACL
- extends org.dasein.cloud.network.AbstractNetworkFirewallSupport
Implements support for AWS VPC network ACLs as Dasein Cloud network firewall support.
Created by George Reese: 2/4/13 9:52 AM
- Since:
- 2013.04
- Version:
- 2013.04 initial version (issue #8)
- Author:
- George Reese
| Fields inherited from interface org.dasein.cloud.network.NetworkFirewallSupport |
ANY, ASSOCIATE, AUTHORIZE, CREATE_FIREWALL, GET_FIREWALL, LIST_FIREWALL, REMOVE_FIREWALL, REVOKE |
|
Method Summary |
void |
associateWithSubnet(String firewallId,
String withSubnetId)
|
String |
authorize(String firewallId,
org.dasein.cloud.network.Direction direction,
org.dasein.cloud.network.Permission permission,
org.dasein.cloud.network.RuleTarget sourceEndpoint,
org.dasein.cloud.network.Protocol protocol,
org.dasein.cloud.network.RuleTarget destinationEndpoint,
int beginPort,
int endPort,
int precedence)
|
String |
createFirewall(org.dasein.cloud.network.FirewallCreateOptions options)
|
Map<org.dasein.cloud.network.FirewallConstraints.Constraint,Object> |
getActiveConstraintsForFirewall(String firewallId)
|
org.dasein.cloud.network.NetworkFirewallCapabilities |
getCapabilities()
|
org.dasein.cloud.network.Firewall |
getFirewall(String firewallId)
|
org.dasein.cloud.network.FirewallConstraints |
getFirewallConstraintsForCloud()
|
String |
getProviderTermForNetworkFirewall(Locale locale)
|
boolean |
isSubscribed()
|
Collection<org.dasein.cloud.network.Firewall> |
listFirewalls()
|
Iterable<org.dasein.cloud.network.FirewallRule> |
listRules(String firewallId)
|
Iterable<org.dasein.cloud.network.RuleTargetType> |
listSupportedDestinationTypes()
|
Iterable<org.dasein.cloud.network.Direction> |
listSupportedDirections()
|
Iterable<org.dasein.cloud.network.Permission> |
listSupportedPermissions()
|
Iterable<org.dasein.cloud.network.RuleTargetType> |
listSupportedSourceTypes()
|
String[] |
mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
|
void |
removeFirewall(String... firewallIds)
|
void |
removeTags(String[] firewallIds,
org.dasein.cloud.Tag... tags)
|
void |
removeTags(String firewallId,
org.dasein.cloud.Tag... tags)
|
void |
revoke(String providerFirewallRuleId)
|
void |
updateTags(String[] firewallIds,
org.dasein.cloud.Tag... tags)
|
void |
updateTags(String firewallId,
org.dasein.cloud.Tag... tags)
|
| Methods inherited from class org.dasein.cloud.network.AbstractNetworkFirewallSupport |
authorize, getContext, getProvider, identifyPrecedenceRequirement, isZeroPrecedenceHighest, listFirewallStatus, supportsNetworkFirewallCreation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
associateWithSubnet
public void associateWithSubnet(@Nonnull
String firewallId,
@Nonnull
String withSubnetId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
associateWithSubnet in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
associateWithSubnet in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
authorize
@Nonnull
public String authorize(@Nonnull
String firewallId,
@Nonnull
org.dasein.cloud.network.Direction direction,
@Nonnull
org.dasein.cloud.network.Permission permission,
@Nonnull
org.dasein.cloud.network.RuleTarget sourceEndpoint,
@Nonnull
org.dasein.cloud.network.Protocol protocol,
@Nonnull
org.dasein.cloud.network.RuleTarget destinationEndpoint,
int beginPort,
int endPort,
int precedence)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
authorize in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
authorize in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
createFirewall
@Nonnull
public String createFirewall(@Nonnull
org.dasein.cloud.network.FirewallCreateOptions options)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
createFirewall in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
createFirewall in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getActiveConstraintsForFirewall
@Nonnull
public Map<org.dasein.cloud.network.FirewallConstraints.Constraint,Object> getActiveConstraintsForFirewall(@Nonnull
String firewallId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
getActiveConstraintsForFirewall in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
getActiveConstraintsForFirewall in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
getCapabilities
@Nonnull
public org.dasein.cloud.network.NetworkFirewallCapabilities getCapabilities()
getFirewall
@Nullable
public org.dasein.cloud.network.Firewall getFirewall(@Nonnull
String firewallId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getFirewall in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
getFirewall in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getFirewallConstraintsForCloud
@Nonnull
public org.dasein.cloud.network.FirewallConstraints getFirewallConstraintsForCloud()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
getFirewallConstraintsForCloud in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
getFirewallConstraintsForCloud in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
getProviderTermForNetworkFirewall
@Nonnull
public String getProviderTermForNetworkFirewall(@Nonnull
Locale locale)
isSubscribed
public boolean isSubscribed()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
listFirewalls
@Nonnull
public Collection<org.dasein.cloud.network.Firewall> listFirewalls()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listRules
@Nonnull
public Iterable<org.dasein.cloud.network.FirewallRule> listRules(@Nonnull
String firewallId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listSupportedDestinationTypes
@Nonnull
public Iterable<org.dasein.cloud.network.RuleTargetType> listSupportedDestinationTypes()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listSupportedDestinationTypes in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
listSupportedDestinationTypes in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listSupportedDirections
@Nonnull
public Iterable<org.dasein.cloud.network.Direction> listSupportedDirections()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listSupportedDirections in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
listSupportedDirections in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listSupportedPermissions
@Nonnull
public Iterable<org.dasein.cloud.network.Permission> listSupportedPermissions()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listSupportedPermissions in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
listSupportedPermissions in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listSupportedSourceTypes
@Nonnull
public Iterable<org.dasein.cloud.network.RuleTargetType> listSupportedSourceTypes()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listSupportedSourceTypes in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
listSupportedSourceTypes in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
org.dasein.cloud.identity.ServiceAction action)
- Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService- Overrides:
mapServiceAction in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
removeFirewall
public void removeFirewall(@Nonnull
String... firewallIds)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
removeTags
public void removeTags(@Nonnull
String firewallId,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
removeTags in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
removeTags in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
removeTags
public void removeTags(@Nonnull
String[] firewallIds,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
removeTags in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
removeTags in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
revoke
public void revoke(@Nonnull
String providerFirewallRuleId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
revoke in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
revoke in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
updateTags
public void updateTags(@Nonnull
String firewallId,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
updateTags in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
updateTags in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
updateTags
public void updateTags(@Nonnull
String[] firewallIds,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
updateTags in interface org.dasein.cloud.network.NetworkFirewallSupport- Overrides:
updateTags in class org.dasein.cloud.network.AbstractNetworkFirewallSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.