toEnvironmentVariableType method

EnvironmentVariableType toEnvironmentVariableType()

Implementation

EnvironmentVariableType toEnvironmentVariableType() {
  switch (this) {
    case 'PLAINTEXT':
      return EnvironmentVariableType.plaintext;
    case 'PARAMETER_STORE':
      return EnvironmentVariableType.parameterStore;
    case 'SECRETS_MANAGER':
      return EnvironmentVariableType.secretsManager;
  }
  throw Exception('$this is not known in enum EnvironmentVariableType');
}