toServiceNamespace method

ServiceNamespace toServiceNamespace()

Implementation

ServiceNamespace toServiceNamespace() {
  switch (this) {
    case 'autoscaling':
      return ServiceNamespace.autoscaling;
    case 'ecs':
      return ServiceNamespace.ecs;
    case 'ec2':
      return ServiceNamespace.ec2;
    case 'rds':
      return ServiceNamespace.rds;
    case 'dynamodb':
      return ServiceNamespace.dynamodb;
  }
  throw Exception('$this is not known in enum ServiceNamespace');
}