aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 572 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.asNetworkAcl=asNetworkAcl,exports.asSubnet=asSubnet;var errors_1=()=>{var tmp=require("../../../core/lib/errors");return errors_1=()=>tmp,tmp};function asNetworkAcl(x,scope){if("addEntry"in x)return x;throw new(errors_1()).ValidationError(`Provided networkAcl is not an instance of INetworkAcl: ${x.constructor.name}`,scope)}function asSubnet(x,scope){if("subnetId"in x)return x;throw new(errors_1()).ValidationError(`Provided subnet is not an instance of ISubnet: ${x.constructor.name}`,scope)}