toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CloudWatchEventSource.ec2:
      return 'EC2';
    case CloudWatchEventSource.codeDeploy:
      return 'CODE_DEPLOY';
    case CloudWatchEventSource.health:
      return 'HEALTH';
    case CloudWatchEventSource.rds:
      return 'RDS';
  }
}