class AWS::EC2::NetworkACL::Association

Represents the association between a {NetworkACL} and a {Subnet}.

def initialize association_id, network_acl, subnet

def initialize association_id, network_acl, subnet
  @association_id = association_id
  @network_acl = network_acl
  @subnet = subnet
end

def replace_network_acl network_acl

Returns:
  • (nil) -

Parameters:
  • network_acl (NetworkACL, String) -- A {NetworkACL} object or
def replace_network_acl network_acl
  acl_id = network_acl.is_a?(NetworkACL) ? network_acl.id : network_acl
  subnet.client.replace_network_acl_association(
    :association_id => association_id,
    :network_acl_id => acl_id)
  nil
end