toServiceNamespace method

ServiceNamespace toServiceNamespace()

Implementation

ServiceNamespace toServiceNamespace() {
  switch (this) {
    case 'ecs':
      return ServiceNamespace.ecs;
    case 'elasticmapreduce':
      return ServiceNamespace.elasticmapreduce;
    case 'ec2':
      return ServiceNamespace.ec2;
    case 'appstream':
      return ServiceNamespace.appstream;
    case 'dynamodb':
      return ServiceNamespace.dynamodb;
    case 'rds':
      return ServiceNamespace.rds;
    case 'sagemaker':
      return ServiceNamespace.sagemaker;
    case 'custom-resource':
      return ServiceNamespace.customResource;
    case 'comprehend':
      return ServiceNamespace.comprehend;
    case 'lambda':
      return ServiceNamespace.lambda;
    case 'cassandra':
      return ServiceNamespace.cassandra;
    case 'kafka':
      return ServiceNamespace.kafka;
  }
  throw Exception('$this is not known in enum ServiceNamespace');
}