toResourceType method
Implementation
ResourceType toResourceType() {
switch (this) {
case 'ContainerService':
return ResourceType.containerService;
case 'Instance':
return ResourceType.instance;
case 'StaticIp':
return ResourceType.staticIp;
case 'KeyPair':
return ResourceType.keyPair;
case 'InstanceSnapshot':
return ResourceType.instanceSnapshot;
case 'Domain':
return ResourceType.domain;
case 'PeeredVpc':
return ResourceType.peeredVpc;
case 'LoadBalancer':
return ResourceType.loadBalancer;
case 'LoadBalancerTlsCertificate':
return ResourceType.loadBalancerTlsCertificate;
case 'Disk':
return ResourceType.disk;
case 'DiskSnapshot':
return ResourceType.diskSnapshot;
case 'RelationalDatabase':
return ResourceType.relationalDatabase;
case 'RelationalDatabaseSnapshot':
return ResourceType.relationalDatabaseSnapshot;
case 'ExportSnapshotRecord':
return ResourceType.exportSnapshotRecord;
case 'CloudFormationStackRecord':
return ResourceType.cloudFormationStackRecord;
case 'Alarm':
return ResourceType.alarm;
case 'ContactMethod':
return ResourceType.contactMethod;
case 'Distribution':
return ResourceType.distribution;
case 'Certificate':
return ResourceType.certificate;
}
throw Exception('$this is not known in enum ResourceType');
}