toOperationName method

OperationName toOperationName()

Implementation

OperationName toOperationName() {
  switch (this) {
    case 'LambdaInvoke':
      return OperationName.lambdaInvoke;
    case 'S3PutObjectCopy':
      return OperationName.s3PutObjectCopy;
    case 'S3PutObjectAcl':
      return OperationName.s3PutObjectAcl;
    case 'S3PutObjectTagging':
      return OperationName.s3PutObjectTagging;
    case 'S3InitiateRestoreObject':
      return OperationName.s3InitiateRestoreObject;
    case 'S3PutObjectLegalHold':
      return OperationName.s3PutObjectLegalHold;
    case 'S3PutObjectRetention':
      return OperationName.s3PutObjectRetention;
  }
  throw Exception('$this is not known in enum OperationName');
}