toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PolicySourceType.user:
      return 'user';
    case PolicySourceType.group:
      return 'group';
    case PolicySourceType.role:
      return 'role';
    case PolicySourceType.awsManaged:
      return 'aws-managed';
    case PolicySourceType.userManaged:
      return 'user-managed';
    case PolicySourceType.resource:
      return 'resource';
    case PolicySourceType.none:
      return 'none';
  }
}