toKeyType method

KeyType toKeyType()

Implementation

KeyType toKeyType() {
  switch (this) {
    case 'AWS_OWNED_CMK':
      return KeyType.awsOwnedCmk;
    case 'CUSTOMER_MANAGED_CMK':
      return KeyType.customerManagedCmk;
  }
  throw Exception('$this is not known in enum KeyType');
}