Name
sn_cmp.AWSOSTypeMapper
Description
No description available
Script
var AWSOSTypeMapper = Class.create();
AWSOSTypeMapper.getOSType = function(name) {
return AWSOSTypeMapper._osTypeMap[name] || name;
};
/* The possible product descriptions are here - http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeReservedInstancesOfferings.html
Create a mapping of this to our OS type metadata in table 'sn_cmp_aws_os_type'
*/
AWSOSTypeMapper._osTypeMap = {
'Linux': 'Linux',
'SUSE' : 'SUSE',
'RHEL' : 'RHEL',
'Windows with SQL Std' : 'Windows with SQL Std',
'Windows with SQL Web': 'Windows with SQL Web',
'Windows with SQL Ent': 'Windows with SQL Ent',
'Linux/UNIX' : 'Linux',
'Linux/UNIX (Amazon VPC)' : 'Linux',
'Windows' : 'Windows',
'Windows (Amazon VPC)' : 'Windows',
'SUSE Linux' : 'SUSE',
'SUSE Linux (Amazon VPC)' : 'SUSE',
'Red Hat Enterprise Linux' : 'RHEL',
'Red Hat Enterprise Linux (Amazon VPC)' : 'RHEL',
'Windows with SQL Server Standard' : 'Windows with SQL Std',
'Windows with SQL Server Standard (Amazon VPC)' : 'Windows with SQL Std',
'Windows with SQL Server Web' : 'Windows with SQL Web',
'Windows with SQL Server Web (Amazon VPC)' : 'Windows with SQL Web',
'Windows with SQL Server Enterprise' : 'Windows with SQL Ent',
'Windows with SQL Server Enterprise (Amazon VPC)' : 'Windows with SQL Ent'
};
Sys ID
fdb4d542732513006cf439282bf6a787