src/nacl.js
function buildAppNetworkAcl(numZones = 0) {
  if (numZones < 1) {
    return {};
  }

  const resources = {};

  Object.assign(
    resources,
    buildNetworkAcl(APP_SUBNET),
    buildNetworkAclEntry(`${APP_SUBNET}NetworkAcl`, '0.0.0.0/0'),
    buildNetworkAclEntry(`${APP_SUBNET}NetworkAcl`, '0.0.0.0/0', {
      Egress: true,
    }),
  );

  for (let i = 1; i <= numZones; i += 1) {
    Object.assign(resources, buildNetworkAclAssociation(APP_SUBNET, i));
  }

  return resources;
}
function buildAppNetworkAcl(numZones = 0) {
  if (numZones < 1) {
    return {};
  }

  const resources = {};

  Object.assign(
    resources,
    buildNetworkAcl(APP_SUBNET),
    buildNetworkAclEntry(`${APP_SUBNET}NetworkAcl`, '0.0.0.0/0'),
    buildNetworkAclEntry(`${APP_SUBNET}NetworkAcl`, '0.0.0.0/0', {
      Egress: true,
    }),
  );

  for (let i = 1; i <= numZones; i += 1) {
    Object.assign(resources, buildNetworkAclAssociation(APP_SUBNET, i));
  }

  return resources;
}
function buildAppNetworkAcl ( numZones = 0 ) { if ( numZones < 1 ) { return { } ; } const resources = { } ; Object . assign ( resources , buildNetworkAcl ( APP_SUBNET ) , buildNetworkAclEntry ( ` ${ APP_SUBNET } ` , '0.0.0.0/0' ) , buildNetworkAclEntry ( ` ${ APP_SUBNET } ` , '0.0.0.0/0' , { Egress : true , } ) , ) ; for ( let i = 1 ; i <= numZones ; i += 1 ) { Object . assign ( resources , buildNetworkAclAssociation ( APP_SUBNET , i ) ) ; } return resources ; }
Build the Application Network ACL

@param {Number} numZones Number of availability zones
Build the Application Network ACL