Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function subnetTypeToVpcSubnetType(type: SubnetType): cxapi.VpcSubnetGroupType {
switch (type) {
case SubnetType.Isolated: return cxapi.VpcSubnetGroupType.ISOLATED;
case SubnetType.Private: return cxapi.VpcSubnetGroupType.PRIVATE;
case SubnetType.Public: return cxapi.VpcSubnetGroupType.PUBLIC;
}
}
function subnetTypeToVpcSubnetType(type: SubnetType): cxapi.VpcSubnetGroupType {
switch (type) {
case SubnetType.Isolated: return cxapi.VpcSubnetGroupType.ISOLATED;
case SubnetType.Private: return cxapi.VpcSubnetGroupType.PRIVATE;
case SubnetType.Public: return cxapi.VpcSubnetGroupType.PUBLIC;
}
}
function subnetTypeToVpcSubnetType(type: SubnetType): cxapi.VpcSubnetGroupType {
switch (type) {
case SubnetType.Isolated: return cxapi.VpcSubnetGroupType.ISOLATED;
case SubnetType.Private: return cxapi.VpcSubnetGroupType.PRIVATE;
case SubnetType.Public: return cxapi.VpcSubnetGroupType.PUBLIC;
}
}